From 85c603fc9ea94aae98255bb5bd8e20212441ff2e Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sun, 14 Aug 2005 08:35:08 +0000 Subject: 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 --- activerecord/lib/active_record/acts/list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/acts/list.rb') 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 -- cgit v1.2.3