diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
| commit | e0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch) | |
| tree | d0cf745592a46aee4d4913911fd34c7c24515220 /vendor/plugins/acts_as_list/README | |
| parent | 6424e10be5a89f175a74c71c55660412a169b8b8 (diff) | |
Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgrade
- Converted plugins to gems (Gemfile)
- Updated config structure (application.rb, boot.rb, environment.rb)
- Converted routes to Rails 3 DSL
- Converted named_scope to scope throughout models
- Converted find(:all, :conditions) to where() chains
- Fixed has_many :order to use ordering scope
- Updated session store and secret token configuration
- Fixed exception_notification middleware configuration
- Patched Ruby 2.4 / Rails 3.2 incompatibilities:
- Integer/Float duration arithmetic (ActiveSupport)
- Arel visit_Integer for PostgreSQL adapter
- create_database String/Integer coercion
- ActionController consider_all_requests_local
- Migrated taggings schema for acts-as-taggable-on
- Replaced dynamic_form gem with custom form_error_messages helper
- Fixed Rails 3 block helper syntax (form_for, form_tag, fields_for)
- Fixed admin layout yield
- Updated test suite for Rails 3 APIs
Diffstat (limited to 'vendor/plugins/acts_as_list/README')
| -rw-r--r-- | vendor/plugins/acts_as_list/README | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vendor/plugins/acts_as_list/README b/vendor/plugins/acts_as_list/README deleted file mode 100644 index 36ae3188..00000000 --- a/vendor/plugins/acts_as_list/README +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | ActsAsList | ||
| 2 | ========== | ||
| 3 | |||
| 4 | This acts_as extension provides the capabilities for sorting and reordering a number of objects in a list. The class that has this specified needs to have a +position+ column defined as an integer on the mapped database table. | ||
| 5 | |||
| 6 | |||
| 7 | Example | ||
| 8 | ======= | ||
| 9 | |||
| 10 | class TodoList < ActiveRecord::Base | ||
| 11 | has_many :todo_items, :order => "position" | ||
| 12 | end | ||
| 13 | |||
| 14 | class TodoItem < ActiveRecord::Base | ||
| 15 | belongs_to :todo_list | ||
| 16 | acts_as_list :scope => :todo_list | ||
| 17 | end | ||
| 18 | |||
| 19 | todo_list.first.move_to_bottom | ||
| 20 | todo_list.last.move_higher | ||
| 21 | |||
| 22 | |||
| 23 | Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license \ No newline at end of file | ||
