From ad1c72be2c0d5ed256b42dfee584bc723b163612 Mon Sep 17 00:00:00 2001 From: intel352 Date: Mon, 28 Feb 2011 22:57:42 -0800 Subject: [PATCH 1/2] Fixing documentation error (omg Rails guys, this error has been around forever, and a PHP guy catches it?) --- lib/active_record/acts/list.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/active_record/acts/list.rb b/lib/active_record/acts/list.rb index ee96ea1..a1b25d0 100644 --- a/lib/active_record/acts/list.rb +++ b/lib/active_record/acts/list.rb @@ -20,8 +20,8 @@ def self.included(base) # acts_as_list :scope => :todo_list # end # - # todo_list.first.move_to_bottom - # todo_list.last.move_higher + # todo_list.todo_items.first.move_to_bottom + # todo_list.todo_items.last.move_higher module ClassMethods # Configuration options are: # From 18bf7517c3785d35f2d77832bfd15924001a2280 Mon Sep 17 00:00:00 2001 From: intel352 Date: Mon, 28 Feb 2011 23:04:12 -0800 Subject: [PATCH 2/2] Same as last commit, just diff file --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 36ae318..9d37063 100644 --- a/README +++ b/README @@ -16,8 +16,8 @@ Example acts_as_list :scope => :todo_list end - todo_list.first.move_to_bottom - todo_list.last.move_higher + todo_list.todo_items.first.move_to_bottom + todo_list.todo_items.last.move_higher Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license \ No newline at end of file