From 48fe38201d2b56aa762282c741f5ebbbd99f23a4 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 6 Jul 2012 08:55:49 -0300 Subject: Update release notes with AR::Relation#inspect change [ci skip] See 07314e64fd62fb8e6165c8c539420160da9437e9. Also fix some tabs in AR Changelog. --- guides/source/4_0_release_notes.textile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'guides/source') diff --git a/guides/source/4_0_release_notes.textile b/guides/source/4_0_release_notes.textile index 270c0e39c5..8415f6f83a 100644 --- a/guides/source/4_0_release_notes.textile +++ b/guides/source/4_0_release_notes.textile @@ -350,11 +350,14 @@ column_exists?(:testings, :taggable_id, :integer, null: false) column_exists?(:testings, :taggable_type, :string, default: 'Photo') -* ActiveRelation#inspect no longer calls #to_a. This means that in places where #inspect is implied (such as in the console), creating a relation will not execute it anymore, you'll have to call #to_a when necessary: +* ActiveRecord::Relation#inspect now makes it clear that you are dealing with a Relation object rather than an array: -User.where(:age => 30) # => returns the relation -User.where(:age => 30).to_a # => executes the query and returns the loaded objects, as before +User.where(:age => 30).inspect +# => , #]> + +User.where(:age => 30).to_a.inspect +# => [#, #] * Add :collation and :ctype support to PostgreSQL. These are available for PostgreSQL 8.4 or later. -- cgit v1.2.3