diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2011-03-27 09:54:38 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2011-03-29 17:24:55 +0100 |
commit | 555d0163897601010ab1305f41ed393ec517b61e (patch) | |
tree | b6ff36c740894b0c52939bdfe6a0b021a5962235 /activerecord/lib/active_record/relation | |
parent | a9dafbb28de3e34c31ebf184fbc4e2042c7ff207 (diff) | |
download | rails-555d0163897601010ab1305f41ed393ec517b61e.tar.gz rails-555d0163897601010ab1305f41ed393ec517b61e.tar.bz2 rails-555d0163897601010ab1305f41ed393ec517b61e.zip |
Quote find_in_batches ORDER BY clause [#6620 state:resolved]
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/batches.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/batches.rb b/activerecord/lib/active_record/relation/batches.rb index bf5a60f458..d52b84179f 100644 --- a/activerecord/lib/active_record/relation/batches.rb +++ b/activerecord/lib/active_record/relation/batches.rb @@ -83,7 +83,7 @@ module ActiveRecord private def batch_order - "#{table_name}.#{primary_key} ASC" + "#{quoted_table_name}.#{quoted_primary_key} ASC" end end end |