class Riveter::Generators::QueryGenerator

Public Instance Methods

create_module_file() click to toggle source
# File lib/generators/riveter/query/query_generator.rb, line 12
def create_module_file
  return if regular_class_path.empty?
  template 'module.rb', File.join('app/queries', "#{class_path.join('/')}.rb") if behavior == :invoke
end
create_query_file() click to toggle source
# File lib/generators/riveter/query/query_generator.rb, line 8
def create_query_file
  template 'query.rb', File.join('app/queries', class_path, "#{file_name}_query.rb")
end