Class: AutoScopes::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AutoScopes::Generators::InstallGenerator
- Defined in:
- lib/generators/auto_scopes/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_auto_scopes_yml ⇒ Object
14 15 16 |
# File 'lib/generators/auto_scopes/install_generator.rb', line 14 def copy_auto_scopes_yml copy_file 'auto_scopes.yml', 'config/auto_scopes.yml' end |
#copy_initializer ⇒ Object
10 11 12 |
# File 'lib/generators/auto_scopes/install_generator.rb', line 10 def copy_initializer copy_file 'initializers/auto_scopes.rb', 'config/initializers/auto_scopes.rb' end |