aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-16 02:49:18 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-16 02:49:18 +0000
commit1f916a119ca5c61174cb58124ea989c1e8b00fd4 (patch)
treea21bc3c8990c5fb6364ff04cc1b3bcd59a8ba27e /activerecord/CHANGELOG
parent8bc82278dddfe23d84ac24ffe83f92c816028dd8 (diff)
downloadrails-1f916a119ca5c61174cb58124ea989c1e8b00fd4.tar.gz
rails-1f916a119ca5c61174cb58124ea989c1e8b00fd4.tar.bz2
rails-1f916a119ca5c61174cb58124ea989c1e8b00fd4.zip
Added that Active Records will automatically record creation and/or update timestamps of database objects if fields of the names created_at/created_on or updated_at/updated_on are present. [Tobias Luetke] Added acts_as_tree that can decorates an existing class with a many to many relationship with itself. Added acts_as_list that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG40
1 files changed, 14 insertions, 26 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 844dc20b9b..bbbac02af1 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,18 @@
*CVS*
+* Added acts_as_list that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom. Example:
+
+ class TodoItem < ActiveRecord::Base
+ acts_as_list :scope => :todo_list_id
+ belongs_to :todo_list
+ end
+
+* Added acts_as_tree that can decorates an existing class with a many to many relationship with itself. Perfect for categories in
+ categories and the likes.
+
+* Added that Active Records will automatically record creation and/or update timestamps of database objects if fields of the names
+ created_at/created_on or updated_at/updated_on are present. [Tobias Luetke]
+
* Added Base.default_error_messages as a hash of all the error messages used in the validates_*_of so they can be changed in one place [Tobias Luetke]
* Added automatic transaction block around AssociationCollection.<<, AssociationCollection.delete, and AssociationCollection.destroy_all
@@ -98,32 +111,6 @@
end
end
-* Added ActiveRecord::Mixins::Touch that will record creation and update times of objects [xal]. Example:
-
- class Bill < ActiveRecord::Base
- include ActiveRecord::Mixins::Touch
- end
-
- bill = Bill.create("amount" => 100)
- bill.created_at # => Time.now at the moment of Bill.create
- bill.updated_at # => Time.now at the moment of Bill.create
-
- bill.update_attribute("amount", 150)
- bill.created_at # => Time.now at the moment of Bill.create
- bill.updated_at # => Time.now at the moment of bill.update_attribute
-
-* Added ActiveRecord::Mixins::List that can decorates an existing class with methods like move_higher/lower, move_to_top/bottom. Example:
-
- class TodoItem < ActiveRecord::Base
- include ActiveRecord::Mixins::List
- belongs_to :todo_list
-
- private
- def scope_condition
- "todo_list_id = #{todo_list_id}"
- end
- end
-
* Added the option for sanitizing find_by_sql and the offset parts in regular finds [Sam Stephenson]. Examples:
Project.find_all ["category = ?", category_name], "created ASC", ["? OFFSET ?", 15, 20]
@@ -244,6 +231,7 @@
* All associations will now attempt to require the classes that they associate to. Relieving the need for most explicit 'require' statements.
+
*1.1.0* (34)
* Added automatic fixture setup and instance variable availability. Fixtures can also be automatically