Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds description about various options available with the acts_as_list method #168

Merged
merged 1 commit into from
Sep 7, 2015
Merged
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
Adds description about various options available with the acts_as_lis…
…t method

Improves message
  • Loading branch information
uditmittal90 committed Sep 7, 2015
commit 6ccb97ed553825cae1bc52f1d2ab37885230ecfa
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ class TodoItem < ActiveRecord::Base
end
```

## More Options
- `column`
default: 'position'. Use this option if the column name in your database is different from position.
- `top_of_list`
default: '1'. Use this option to define the top of the list. Use 0 to make the collection act more like an array in its indexing.
- `add_new_at`
default: ':bottom'. Use this option to specify whether objects get added to the :top or :bottom of the list. `nil` will result in new items not being added to the list on create, i.e, position will be kept nil after create.

## Versions
All versions `0.1.5` onwards require Rails 3.0.x and higher.

Expand Down