Class: Authz::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Authz::Generators::InstallGenerator
- Defined in:
- lib/generators/authz/install/install_generator.rb
Overview
Rails generator to prepare the library for use
Instance Method Summary collapse
Instance Method Details
#copy_initializer_file ⇒ Object
7 8 9 |
# File 'lib/generators/authz/install/install_generator.rb', line 7 def copy_initializer_file copy_file 'initializer.rb', 'config/initializers/authz.rb' end |
#copy_migrations ⇒ Object
11 12 13 |
# File 'lib/generators/authz/install/install_generator.rb', line 11 def copy_migrations rake('authz:install:migrations') end |