Class: Roles::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
RailsAssist::UseMacro
Includes:
Cream::GeneratorHelper
Defined in:
lib/generators/roles/config/config_generator.rb

Instance Method Summary collapse

Methods included from Cream::GeneratorHelper

#add_logger, #debug!, included, #info!, #logit!

Instance Method Details

#configure_rolesObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/generators/roles/config/config_generator.rb', line 27

def configure_roles
  logit!

  # make the artifactor model methods behave according to selected orm! - this is a macro
  set_orm      	

  roles_gems if gems?

  # run the orm specific Roles generator
  create_roles

  # setup User to use the roles registered with Cream
  set_valid_roles_cream                
end