Module: Sunrise::Models::Asset::ClassMethods
- Defined in:
- lib/sunrise/models/asset.rb
Instance Method Summary collapse
Instance Method Details
#move_to(index, id) ⇒ Object
22 23 24 |
# File 'lib/sunrise/models/asset.rb', line 22 def move_to(index, id) update_all(["sort_order = ?", index], ["id = ?", id.to_i]) end |