diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-04 12:35:10 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-04 12:35:10 +0000 |
commit | f2e6945b25d92d5a4a00e5678d8515ae35cd24bb (patch) | |
tree | cf1022909d67ed4b464a73492ab468d66bc9fc14 /activerecord | |
parent | 2afdf01e5c354bdc49b1d1329333a01b7012134b (diff) | |
download | rails-f2e6945b25d92d5a4a00e5678d8515ae35cd24bb.tar.gz rails-f2e6945b25d92d5a4a00e5678d8515ae35cd24bb.tar.bz2 rails-f2e6945b25d92d5a4a00e5678d8515ae35cd24bb.zip |
Prepared for release of 0.9.3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG | 76 | ||||
-rwxr-xr-x | activerecord/Rakefile | 2 |
2 files changed, 39 insertions, 39 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index f1b6f3003a..be46c22096 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,12 +1,22 @@ -*SVN* +*1.4.0* (January 4th, 2005) -* Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406 - -* Fixed that the overwritten respond_to? method didn't take two parameters like the original #391 - -* Added HasManyAssociation#count that works like Base#count #413 [intinig] +* Added automated optimistic locking if the field <tt>lock_version</tt> is present. Each update to the + record increments the lock_version column and the locking facilities ensure that records instantiated twice + will let the last one saved raise a StaleObjectError if the first was also updated. Example: + + p1 = Person.find(1) + p2 = Person.find(1) + + p1.first_name = "Michael" + p1.save + + p2.first_name = "should fail" + p2.save # Raises a ActiveRecord::StaleObjectError + + You're then responsible for dealing with the conflict by rescuing the exception and either rolling back, merging, + or otherwise apply the business logic needed to resolve the conflict. -* Fixed handling of binary content in blobs and similar fields for Ruby/MySQL and SQLite #409 [xal] + #384 [Michael Koziarski] * Added dynamic attribute-based finders as a cleaner way of getting objects by simple queries without turning to SQL. They work by appending the name of an attribute to <tt>find_by_</tt>, so you get finders like <tt>Person.find_by_user_name, @@ -22,14 +32,6 @@ <tt>Payment.find_all_by_amount(50)</tt> that is turned into <tt>Payment.find_all(["amount = ?", 50])</tt>. This is something not as equally useful, though, as it's not possible to specify the order in which the objects are returned. -* Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [bitsweat] - -* Added a db2 adapter that only depends on the Ruby/DB2 bindings (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt] - -* Added the final touches to the Microsoft SQL Server adapter by DeLynn Berry that makes it suitable for actual use #394 [DeLynn Barry] - -* Fixed a bug in the Ruby/MySQL that caused binary content to be escaped badly and come back mangled #405 [Tobias Luetke] - * Added block-style for callbacks #332 [bitsweat]. Before: @@ -38,39 +40,37 @@ After: before_destroy { |record| Person.destroy_all "firm_id = #{record.id}" } -* Added automated optimistic locking if the field <tt>lock_version</tt> is present. Each update to the - record increments the lock_version column and the locking facilities ensure that records instantiated twice - will let the last one saved raise a StaleObjectError if the first was also updated. Example: - - p1 = Person.find(1) - p2 = Person.find(1) - - p1.first_name = "Michael" - p1.save - - p2.first_name = "should fail" - p2.save # Raises a ActiveRecord::StaleObjectError - - You're then responsible for dealing with the conflict by rescuing the exception and either rolling back, merging, - or otherwise apply the business logic needed to resolve the conflict. - - #384 [Michael Koziarski] - * Added :counter_cache option to acts_as_tree that works just like the one you can define on belongs_to #371 [Josh] -* Fixed quoting in validates_format_of that would allow some rules to pass regardless of input #390 [Dmitry V. Sabanin] - -* Fixed broken transactions that were actually only running object-level and not db level transactions [andreas] - * Added Base.default_timezone accessor that determines whether to use Time.local (using :local) or Time.utc (using :utc) when pulling dates and times from the database. This is set to :local by default. * Added the possibility for adapters to overwrite add_limit! to implement a different limiting scheme than "LIMIT X" used by MySQL, PostgreSQL, and SQLite. +* Added the possibility of having objects with acts_as_list created before their scope is available or... + +* Added a db2 adapter that only depends on the Ruby/DB2 bindings (http://raa.ruby-lang.org/project/ruby-db2/) #386 [Maik Schmidt] + +* Added the final touches to the Microsoft SQL Server adapter by Joey Gibson that makes it suitable for actual use #394 [DeLynn Barry] + +* Added that Base#find takes an optional options hash, including :conditions. Base#find_on_conditions deprecated in favor of #find with :conditions #407 [bitsweat] + +* Added HasManyAssociation#count that works like Base#count #413 [intinig] + +* Fixed handling of binary content in blobs and similar fields for Ruby/MySQL and SQLite #409 [xal] + +* Fixed a bug in the Ruby/MySQL that caused binary content to be escaped badly and come back mangled #405 [Tobias Luetke] + * Fixed that the const_missing autoload assumes the requested constant is set by require_association and calls const_get to retrieve it. If require_association did not set the constant then const_get will call const_missing, resulting in an infinite loop #380 [bitsweat] -* Added the possibility of having objects with acts_as_list created before their scope is available or... +* Fixed broken transactions that were actually only running object-level and not db level transactions [andreas] + +* Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406 + +* Fixed that the overwritten respond_to? method didn't take two parameters like the original #391 + +* Fixed quoting in validates_format_of that would allow some rules to pass regardless of input #390 [Dmitry V. Sabanin] *1.3.0* (December 23, 2004) diff --git a/activerecord/Rakefile b/activerecord/Rakefile index ef08625e35..a82b3edf03 100755 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -8,7 +8,7 @@ require 'rake/contrib/rubyforgepublisher' PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'activerecord' -PKG_VERSION = '1.3.0' + PKG_BUILD +PKG_VERSION = '1.4.0' + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" PKG_FILES = FileList[ |