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