diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-14 02:12:00 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-14 02:12:00 +0000 |
commit | 4a0695996f78c6fd330f1961d450367fc8fa5406 (patch) | |
tree | d1ee655b94e6b0c5adf0bdf8d2d57b1d7b9f45b2 /activerecord | |
parent | 023227d78dd1f3b5e30c495b18330885e2daffc4 (diff) | |
download | rails-4a0695996f78c6fd330f1961d450367fc8fa5406.tar.gz rails-4a0695996f78c6fd330f1961d450367fc8fa5406.tar.bz2 rails-4a0695996f78c6fd330f1961d450367fc8fa5406.zip |
Removed silly change caused by inability to grok own code at 3 am
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/acts/list.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/acts/list.rb b/activerecord/lib/active_record/acts/list.rb index 285b371a72..8232ea2852 100644 --- a/activerecord/lib/active_record/acts/list.rb +++ b/activerecord/lib/active_record/acts/list.rb @@ -100,14 +100,6 @@ module ActiveRecord end - def add_to_list_top - increment_positions_on_all_items - end - - def add_to_list_bottom - assume_bottom_position - end - def remove_from_list decrement_positions_on_lower_items end @@ -143,6 +135,14 @@ module ActiveRecord end private + def add_to_list_top + increment_positions_on_all_items + end + + def add_to_list_bottom + self[position_column] = bottom_position_in_list.to_i + 1 + end + # Overwrite this method to define the scope of the list changes def scope_condition() "1" end |