module Sunrise::Models::Asset::ClassMethods
Public Instance Methods
move_to(index, id)
click to toggle source
# File lib/sunrise/models/asset.rb, line 21 def move_to(index, id) update_all(['sort_order = ?', index], ['id = ?', id.to_i]) end