From df1d21a554af57c76866c7950f4dfcef0986c172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 26 Aug 2012 01:19:44 -0300 Subject: Remove some entries from the 4.0 release notes We need more :heart: in this file. There are a lot of outdated entries. --- guides/source/4_0_release_notes.textile | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/guides/source/4_0_release_notes.textile b/guides/source/4_0_release_notes.textile index df932603f7..0e03779e0d 100644 --- a/guides/source/4_0_release_notes.textile +++ b/guides/source/4_0_release_notes.textile @@ -479,35 +479,10 @@ end User.stored_attributes[:settings] # [:color, :homepage] -* composed_of was removed. You'll have to write your own accessor and mutator methods if you'd like to use value objects to represent some portion of your models. So, instead of: - - -class Person < ActiveRecord::Base - composed_of :address, :mapping => [ %w(address_street street), %w(address_city city) ] -end - - -you could write something like this: - - -def address - @address ||= Address.new(address_street, address_city) -end - -def address=(address) - self[:address_street] = @address.street - self[:address_city] = @address.city - - @address = address -end - - * PostgreSQL default log level is now 'warning', to bypass the noisy notice messages. You can change the log level using the min_messages option available in your config/database.yml. * Add uuid datatype support to PostgreSQL adapter. -* update_attribute has been removed. Use update_column if you want to bypass mass-assignment protection, validations, callbacks, and touching of updated_at. Otherwise please use update_attributes. - * Added ActiveRecord::Migration.check_pending! that raises an error if migrations are pending. * Added #destroy! which acts like #destroy but will raise an ActiveRecord::RecordNotDestroyed exception instead of returning false. -- cgit v1.2.3