Class: Rbacfull::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Rbacfull::InstallGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/rbacfull/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_helpers ⇒ Object
31 32 33 34 |
# File 'lib/generators/rbacfull/install_generator.rb', line 31 def copy_helpers copy_helper "user_helper" end |
#copy_migrations ⇒ Object
16 17 18 19 20 21 |
# File 'lib/generators/rbacfull/install_generator.rb', line 16 def copy_migrations copy_migration "create_user_roles" copy_migration "create_roles" copy_migration "create_actions" copy_migration "create_permissions" end |
#copy_models ⇒ Object
23 24 25 26 27 28 |
# File 'lib/generators/rbacfull/install_generator.rb', line 23 def copy_models copy_model "role" copy_model "action" copy_model "permission" copy_model "user_role" end |
#install ⇒ Object
11 12 13 14 |
# File 'lib/generators/rbacfull/install_generator.rb', line 11 def install puts "Install gem's files" end |