diff options
author | Tsutomu Kuroda <t-kuroda@oiax.jp> | 2013-08-09 23:46:27 +0900 |
---|---|---|
committer | Tsutomu Kuroda <t-kuroda@oiax.jp> | 2014-01-29 09:16:46 +0900 |
commit | c1d99344476e1046a609f64776621542b399c929 (patch) | |
tree | 515e8e0aa6951118fe756c96c36ee60952e19f12 /activerecord/lib/active_record/relation/spawn_methods.rb | |
parent | b9cd5a29dd4c6142b19c861fbf1a67452320b3dd (diff) | |
download | rails-c1d99344476e1046a609f64776621542b399c929.tar.gz rails-c1d99344476e1046a609f64776621542b399c929.tar.bz2 rails-c1d99344476e1046a609f64776621542b399c929.zip |
Handle aliased attributes in AR::Relation#select, #order, etc.
With this we can write `Model#select(:aliased)`, `Model#order(:aliased)`,
`Model#reoder(aliased: :desc)`, etc.
Supplementary work to 54122067acaad39b277a5363c6d11d6804c7bf6b.
Diffstat (limited to 'activerecord/lib/active_record/relation/spawn_methods.rb')
0 files changed, 0 insertions, 0 deletions