diff options
author | Radoslav Stankov <rstankov@gmail.com> | 2012-04-29 21:17:57 +0300 |
---|---|---|
committer | Radoslav Stankov <rstankov@gmail.com> | 2012-05-17 02:36:13 +0300 |
commit | 64872d1e34d929ee30041b37900591aade2a5eaf (patch) | |
tree | 65288d3fdd80559ecbe655c15b83ce19e49c8906 /activerecord/CHANGELOG.md | |
parent | 78b6fdd89f541dfedd369da9957ee6eab9a8a586 (diff) | |
download | rails-64872d1e34d929ee30041b37900591aade2a5eaf.tar.gz rails-64872d1e34d929ee30041b37900591aade2a5eaf.tar.bz2 rails-64872d1e34d929ee30041b37900591aade2a5eaf.zip |
Relation#from to accept other Relation objects
Record.from("(#{sub_query.to_sql})") -> Record.from(sub_query)
Record.from("(#{sub_query.to_sql}) a") -> Record.from(sub_query, :a)
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d19e0c9e9b..198b054f99 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,12 @@ ## Rails 4.0.0 (unreleased) ## +* Added ability to ActiveRecord::Relation#from to accept other ActiveRecord::Relation objects + + Record.from(subquery) + Record.from(subquery, :a) + + *Radoslav Stankov* + * Added custom coders support for ActiveRecord::Store. Now you can set your custom coder like this: |