Method: Dao::Conducer#update_models
- Defined in:
- lib/dao/conducer.rb
#update_models(*models) ⇒ Object
205 206 207 208 209 210 211 212 213 |
# File 'lib/dao/conducer.rb', line 205 def update_models(*models) models.flatten.compact.each do |model| if conduces?(model) update_attributes(model.attributes) else update_attributes(model_key_for(model), model.attributes) end end end |