Class: Rails::Generators::QueryGenerator
- Inherits:
-
ARQO::Generators::NamedBase
- Object
- NamedBase
- ARQO::Generators::NamedBase
- Rails::Generators::QueryGenerator
- Defined in:
- lib/generators/rails/query_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_model_query ⇒ Object
14 15 16 17 18 19 |
# File 'lib/generators/rails/query_generator.rb', line 14 def create_model_query return if class_name.blank? template_file = File.join('app/queries', class_path, "#{file_name}_query.rb") template 'query.rb.erb', template_file end |