Class: ActiveRecord::Generators::RolesGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ActiveRecord::Generators::RolesGenerator
- Extended by:
- Rails3::Assist::UseMacro
- Includes:
- Rails::Assist::BasicLogging
- Defined in:
- lib/generators/active_record/roles/roles_generator.rb
Instance Method Summary collapse
Instance Method Details
#apply_role_strategy ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/generators/active_record/roles/roles_generator.rb', line 18 def apply_role_strategy log.add_logfile log.debug "apply_role_strategy for : #{strategy} in model #{name}" begin insert_into_model name do insertion_text end rescue say "Model #{name} not found" end end |