Method: Mdm::Module::Detail#add_mixin
- Defined in:
- app/models/mdm/module/detail.rb
#add_mixin(name) ⇒ true, false
Adds an Mixin with the given Mixin#name to #mixins and immediately saves it to the database.
335 336 337 |
# File 'app/models/mdm/module/detail.rb', line 335 def add_mixin(name) self.mixins.build(:name => name).save end |