diff options
author | Xavier Noria <fxn@hashref.com> | 2010-09-19 00:04:30 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-09-19 00:05:05 +0200 |
commit | 2b6c2e947b819a2b874ce21f0017cc1449a827b3 (patch) | |
tree | e55f592d247361c619e10812f9eb7517959d3d84 /activerecord/lib/active_record/relation | |
parent | 2d65ff5af7c57f2b66782d40e380a33904d02bce (diff) | |
download | rails-2b6c2e947b819a2b874ce21f0017cc1449a827b3.tar.gz rails-2b6c2e947b819a2b874ce21f0017cc1449a827b3.tar.bz2 rails-2b6c2e947b819a2b874ce21f0017cc1449a827b3.zip |
adds to the API guidelines the proper spelling of Arel
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 91d26e705e..6a33edeb97 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -260,8 +260,8 @@ module ActiveRecord def build_select(arel, selects) unless selects.empty? @implicit_readonly = false - # TODO: fix this ugly hack, we should refactor the callers to get an ARel compatible array. - # Before this change we were passing to ARel the last element only, and ARel is capable of handling an array + # TODO: fix this ugly hack, we should refactor the callers to get an Arel compatible array. + # Before this change we were passing to Arel the last element only, and Arel is capable of handling an array case select = selects.last when Arel::Expression, Arel::SqlLiteral arel.project(select) |