diff options
author | Jamis Buck <jamis@37signals.com> | 2005-08-14 08:35:08 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-08-14 08:35:08 +0000 |
commit | 85c603fc9ea94aae98255bb5bd8e20212441ff2e (patch) | |
tree | 042e38f71f0313607cc9b216f76f23eb141bf9ad /activerecord/lib/active_record | |
parent | e17bf81823454f490f4df972b570dd54d509e386 (diff) | |
download | rails-85c603fc9ea94aae98255bb5bd8e20212441ff2e.tar.gz rails-85c603fc9ea94aae98255bb5bd8e20212441ff2e.tar.bz2 rails-85c603fc9ea94aae98255bb5bd8e20212441ff2e.zip |
Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-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 f3cb3496d8..425ac3856d 100644 --- a/activerecord/lib/active_record/acts/list.rb +++ b/activerecord/lib/active_record/acts/list.rb @@ -72,7 +72,7 @@ module ActiveRecord # the first in the list of all chapters. module InstanceMethods def insert_at(position = 1) - position == 1 ? add_to_list_top : insert_at_position(position) + insert_at_position(position) end def move_lower |