From ab72040b74f742b6676b2d2a5dd029bfdca25a7a Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 30 Jun 2012 16:31:40 -0300 Subject: [PATCH] Update AR and AP changelogs [ci skip] --- actionpack/CHANGELOG.md | 2 ++ activerecord/CHANGELOG.md | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 345b5aa330..3e10310179 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,7 @@ ## Rails 4.0.0 (unreleased) ## +* Remove Active Model dependency from Action Pack. *Guillermo Iguaran* + * Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping: get Rack::Utils.escape('こんにちは') => 'home#index' diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index aeb3773c99..73f9212371 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,6 +1,18 @@ ## Rails 4.0.0 (unreleased) ## -* `ActiveRelation#inspect` no longer calls `#to_a` +* Add `:default` and `:null` options to `column_exists?`. + + column_exists?(:testings, :taggable_id, :integer, null: false) + column_exists?(:testings, :taggable_type, :string, default: 'Photo') + + *Aleksey Magusev* + +* `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: + + User.where(:age => 30) # => returns the relation + User.where(:age => 30).to_a # => executes the query and returns the loaded objects, as before *Brian Cardarella* -- GitLab