diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 345b5aa330497d192361b7d4fe3e31f9bf72f772..3e10310179c6f8ffba445ceeee3ae21666f78791 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 aeb3773c994cc31ad2cd2709ae9fffa06edacd57..73f92123714a18f73ec0e3e1dfc93560e60a39bb 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*