Method: ActsAsList::InstanceMethods#remove_from_list

Defined in:
lib/acts_as_list.rb

#remove_from_listObject

Removes the item from the list.



121
122
123
124
125
126
# File 'lib/acts_as_list.rb', line 121

def remove_from_list
  if in_list?
    decrement_positions_on_lower_items
    update_attribute position_column, nil
  end
end