aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/acts
Commit message (Collapse)AuthorAgeFilesLines
* Remove empty actsJeremy Kemper2007-09-112-0/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved acts_as_tree into a plugin of the same name on the official Rails svn ↵David Heinemeier Hansson2007-09-111-96/+0
| | | | | | (closes #9514) [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved acts_as_nested_set into a plugin of the same name on the official ↵David Heinemeier Hansson2007-09-111-211/+0
| | | | | | Rails svn (closed #9516) [josh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove acts_as_list. Users are advised to install the new plugin. ↵Michael Koziarski2007-09-101-253/+0
| | | | | | References #9415. [josh, nzkoz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Formatting and grammatical fixes for the acts_as_* documentation ↵Michael Koziarski2007-08-283-30/+30
| | | | | | [seanhussey, kampers] Closes #9107 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* acts_as_nested_set: direct_children is sorted correctly. Closes #4761.Jeremy Kemper2007-05-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* documentation project patches, closes #7342, #7319, #7316, #7190 ↵Rick Olson2007-03-272-0/+16
| | | | | | [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* acts_as_nested_set works with single-table inheritance. Closes #6030.Jeremy Kemper2007-01-121-10/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation tests. Remove warnings for dynamic finders and for the foo_count ↵Jeremy Kemper2006-09-151-12/+12
| | | | | | ethod if it's also an attribute. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5116 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc fix (closes #5504) [lee@omara.ca]David Heinemeier Hansson2006-07-051-2/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace Ruby's deprecated append_features in favor of included. [Marcel ↵Marcel Molina2006-04-293-6/+3
| | | | | | Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The style police makes an expection on acts_as_tree (closes #4168) [coffee2code]David Heinemeier Hansson2006-03-181-25/+29
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't hardcode id in acts_as_list. Closes #3370Michael Koziarski2006-01-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure the acts_as_list_class is resolved relative to the global namespaceJamis Buck2005-11-101-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* acts_as_list plays nicely with inheritance by remembering the class which ↵Jeremy Kemper2005-11-101-12/+16
| | | | | | declared it. Closes #2811. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2964 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed acts_as_list for definitions without an explicit :order #2803 ↵David Heinemeier Hansson2005-11-091-2/+2
| | | | | | [jonathan@bluewire.net.nz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2951 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix docs (closes #2491)David Heinemeier Hansson2005-10-263-20/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ability to get all siblings, including the current child, with ↵Marcel Molina2005-10-091-1/+6
| | | | | | acts_as_tree. Recloses #2140. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the instance methods #root and #ancestors on acts_as_tree and fixed ↵David Heinemeier Hansson2005-09-091-10/+28
| | | | | | siblings to not include the current node #2142, #2140 [coffee2code] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make acts_as_list work for insert_at(1) #1966 [hensleyl@papermountain.org]Jamis Buck2005-08-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix acts_as_list such that moving next-to-last item to the bottom does not ↵Jamis Buck2005-07-201-5/+7
| | | | | | result in duplicate positions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that assume_bottom_position (in acts_as_list) could be called on items ↵David Heinemeier Hansson2005-07-101-1/+1
| | | | | | already last in the list and they would move one position away from the list #1648 [tyler@kianta.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1796 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added roots, root, and siblings to the batch of methods added by ↵David Heinemeier Hansson2005-07-011-1/+18
| | | | | | acts_as_tree #1541 [michael@schuerig.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated all references to the old find_first and find_all to use the new ↵David Heinemeier Hansson2005-06-262-10/+7
| | | | | | style #1511 [Marcel Molina] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed acts_as_list where deleting an item that was removed from the list ↵David Heinemeier Hansson2005-04-251-8/+22
| | | | | | would ruin the positioning of other list items #1197 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added acts_as_nested_set #1000 [wschenk]David Heinemeier Hansson2005-04-171-0/+212
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added insert_at(position) to acts_as_list #1083 [DeLynnB]David Heinemeier Hansson2005-04-171-4/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed broken attempt to DRY module ClassMethod #970David Heinemeier Hansson2005-04-022-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Automatically extend the class which gets a module included with the ↵David Heinemeier Hansson2005-04-022-10/+0
| | | | | | ClassMethods module if it exists #970 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed acts_as_list to trigger remove_from_list on destroy after the fact, ↵David Heinemeier Hansson2005-03-201-1/+1
| | | | | | not before, so a unique position can be maintained #871 [Alisdair McDiarmid] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@923 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a bit more documentation on how to use the instance methods for ↵David Heinemeier Hansson2005-01-151-11/+14
| | | | | | acts_as_list #478 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed silly change caused by inability to grok own code at 3 amDavid Heinemeier Hansson2005-01-141-8/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@406 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed add_to_list_top and add_to_list_bottom to be publicDavid Heinemeier Hansson2005-01-141-10/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed default scope of acts_as_list from "1" to "1 = 1", so itll work in ↵David Heinemeier Hansson2005-01-111-1/+1
| | | | | | PostgreSQL (among other places) #427 [Alexey] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@380 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@312 ↵David Heinemeier Hansson2005-01-021-34/+0
| | | | 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :counter_cache option to acts_as_tree that works just like the one you ↵David Heinemeier Hansson2004-12-311-2/+3
| | | | | | can define on belongs_to #371 [Josh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved support into Active SupportDavid Heinemeier Hansson2004-12-291-45/+56
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@277 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added higher_item and lower_item as public methods for acts_as_list #342 ↵David Heinemeier Hansson2004-12-191-13/+13
| | | | | | [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the last tweaks before 0.9David Heinemeier Hansson2004-12-161-57/+58
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improving documentation...David Heinemeier Hansson2004-12-163-197/+159
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Renamed Mixins to Acts to resemble the change from include ↵David Heinemeier Hansson2004-12-164-0/+293
ActiveRecord::Mixins::List to acts_as_list and renamed @@default_error_messagess to @@default_error_messages git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de