Class: Rails::Generators::QueryGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::QueryGenerator
- Defined in:
- lib/rails/generators/query/query_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_query_file ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/rails/generators/query/query_generator.rb', line 6 def create_query_file template "query.sql", File.join(AppQuery.configuration.query_path, class_path, "#{file_name}.sql") # in_root do # if behavior == :invoke && !File.exist?(application_mailbox_file_name) # template "application_mailbox.rb", application_mailbox_file_name # end # end end |