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 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: #