Method: Mdm::Module::Detail#add_action
- Defined in:
- app/models/mdm/module/detail.rb
#add_action(name) ⇒ true, false
Adds an Action with the given Action#name to #actions and immediately saves it to the database.
304 305 306 |
# File 'app/models/mdm/module/detail.rb', line 304 def add_action(name) self.actions.build(:name => name).save end |