Class: ReposGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ReposGenerator
- Defined in:
- lib/generators/repos_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_query_file ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/repos_generator.rb', line 9 def create_query_file create_file "app/queries/application_query.rb", "class ApplicationQuery < Repositor::Query::ActiveRecordAdapter end " end |
#create_repos_file ⇒ Object
2 3 4 5 6 7 |
# File 'lib/generators/repos_generator.rb', line 2 def create_repos_file create_file "app/repos/application_repo.rb", "class ApplicationRepo < Repositor::Repo::ActiveRecordAdapter end " end |