Permalink
Browse files

Update AR and AP changelogs [ci skip]

  • Loading branch information...
carlosantoniodasilva committed Jun 30, 2012
1 parent 49d069d commit ab72040b74f742b6676b2d2a5dd029bfdca25a7a
Showing with 15 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG.md
  2. +13 −1 activerecord/CHANGELOG.md
View
@@ -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
@@ -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

This comment has been minimized.

Show comment
Hide comment
@vijaydev

vijaydev Jul 1, 2012

Member

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

Member

vijaydev replied Jul 1, 2012

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

@carlosantoniodasilva

This comment has been minimized.

Show comment
Hide comment
@carlosantoniodasilva

carlosantoniodasilva Jul 1, 2012

Member

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

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

@carlosantoniodasilva

This comment has been minimized.

Show comment
Hide comment
@carlosantoniodasilva

carlosantoniodasilva Jul 1, 2012

Member

@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 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

This comment has been minimized.

Show comment
Hide comment
@vijaydev

vijaydev Jul 2, 2012

Member

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

Member

vijaydev replied Jul 2, 2012

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

@carlosantoniodasilva

This comment has been minimized.

Show comment
Hide comment
@carlosantoniodasilva

carlosantoniodasilva Jul 2, 2012

Member

Alright, thanks!

Alright, thanks!

@carlosantoniodasilva

This comment has been minimized.

Show comment
Hide comment
@carlosantoniodasilva

carlosantoniodasilva Jul 3, 2012

Member

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

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

Please sign in to comment.