提交 ab72040b 编写于 作者: C Carlos Antonio da Silva

Update AR and AP changelogs [ci skip]

上级 49d069d7
## 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'
......
## 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*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册