Class: AuthorizeRbac::AuthorizeRbacGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- AuthorizeRbac::AuthorizeRbacGenerator
- Defined in:
- lib/generators/authorize_rbac/authorize_rbac_generator.rb
Constant Summary collapse
- ACTIONS =
%w(intall user_migrate role_migrate update_application_controller update_user_model initializer help).freeze
Instance Method Summary collapse
Instance Method Details
#generate_controllers ⇒ Object
6 7 8 |
# File 'lib/generators/authorize_rbac/authorize_rbac_generator.rb', line 6 def generate_controllers ACTIONS.include?(action_name) ? self.send(action_name) : help end |