diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/acts/list.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/acts/list.rb b/activerecord/lib/active_record/acts/list.rb index 6c908c88a4..29b5a0a58e 100644 --- a/activerecord/lib/active_record/acts/list.rb +++ b/activerecord/lib/active_record/acts/list.rb @@ -173,7 +173,7 @@ module ActiveRecord end def assume_bottom_position - update_attribute(position_column, bottom_position_in_list.to_i + 1) + update_attribute(position_column, bottom_position_in_list.to_i + 1) unless last? end def assume_top_position |