Class: AuthorizeRbac::AuthorizeRbacGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
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_controllersObject



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