Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update AR and AP changelogs [ci skip]

  • Loading branch information...
commit ab72040b74f742b6676b2d2a5dd029bfdca25a7a 1 parent 49d069d
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 15 additions and 1 deletion.
  1. +2 −0  actionpack/CHANGELOG.md
  2. +13 −1 activerecord/CHANGELOG.md
View
2  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'
View
14 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*

6 comments on commit ab72040

@vijaydev
Collaborator

Can you also update the 4.0 release notes guide with these changes? Thanks.

@carlosantoniodasilva

@vijaydev sure, will do. I forgot 4.0 now has release notes :)

@carlosantoniodasilva

@vijaydev could you take a look in my fork before I push? I've tried to sync all other changelogs with the release notes. Thanks! :)

@vijaydev
Collaborator

@carlosantoniodasilva Looks good. Just take care of the fixed font in some places and push it. Thanks much.

@carlosantoniodasilva

Alright, thanks!

@carlosantoniodasilva

Pushed in 215d41d. Let me know if anything needs improvement, thanks!

Please sign in to comment.
Something went wrong with that request. Please try again.