Class: Mongoid::Generators::RolesGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Extended by:
Rails3::Assist::UseMacro
Includes:
Rails::Assist::BasicLogging
Defined in:
lib/generators/mongoid/roles/roles_generator.rb

Instance Method Summary collapse

Instance Method Details

#apply_role_strategyObject



15
16
17
18
19
20
21
# File 'lib/generators/mongoid/roles/roles_generator.rb', line 15

def apply_role_strategy
  log.add_logfile
  log.debug "apply_role_strategy for : #{strategy} in model #{name}"
  insert_into_model name do
    insertion_text
  end
end