Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Fixing broken examples in docs #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions lib/active_record/acts/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down