method

insert_at_position

rails latest stable - Class: ActiveRecord::Acts::List::InstanceMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

insert_at_position(position)
private

No documentation available.

# File activerecord/lib/active_record/acts/list.rb, line 249
          def insert_at_position(position)
            remove_from_list
            increment_positions_on_lower_items(position)
            self.update_attribute(position_column, position)
          end