Method: ActsAsList::InstanceMethods#increment_position
- Defined in:
- lib/acts_as_list.rb
#increment_position ⇒ Object
Increase the position of this item without adjusting the rest of the list.
129 130 131 132 |
# File 'lib/acts_as_list.rb', line 129 def increment_position return unless in_list? update_attribute position_column, self.send(position_column).to_i + 1 end |