diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-15 16:29:21 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-15 16:29:21 -0700 |
commit | d9a0587d3ea707aa6ab3a61b54b417aff2101933 (patch) | |
tree | 618dfee932c4d3a0afd7b56477c5109443481233 | |
parent | 9675c7da28758432ec7bd6e7ca1814801b2591f5 (diff) | |
download | rails-d9a0587d3ea707aa6ab3a61b54b417aff2101933.tar.gz rails-d9a0587d3ea707aa6ab3a61b54b417aff2101933.tar.bz2 rails-d9a0587d3ea707aa6ab3a61b54b417aff2101933.zip |
removing useless assingment
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index f146c1fdb2..b5ca117f3d 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -285,7 +285,7 @@ module ActiveRecord references!(references) if references.any? # if a symbol is given we prepend the quoted table name - args = args.map! { |arg| + args.map! { |arg| arg.is_a?(Symbol) ? Arel::Nodes::Ascending.new(klass.arel_table[arg]) : arg |