aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-04-10 14:34:03 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-04-10 14:34:03 -0400
commitaeafc09921116e356494e1effc7cf61435f22104 (patch)
tree81447d5e8f2f70f1b5c2fbe0eb2219bfcb33f3bd
parent070dda28ae1762b9c6a7e40aeeedc5bb57c15147 (diff)
downloadrails-aeafc09921116e356494e1effc7cf61435f22104.tar.gz
rails-aeafc09921116e356494e1effc7cf61435f22104.tar.bz2
rails-aeafc09921116e356494e1effc7cf61435f22104.zip
converge three lines into one
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 257221174b..06a220216a 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -934,9 +934,7 @@ module ActiveRecord
association_joins = buckets[:association_join] || []
stashed_association_joins = buckets[:stashed_join] || []
join_nodes = (buckets[:join_node] || []).uniq
- string_joins = (buckets[:string_join] || []).map { |x|
- x.strip
- }.uniq
+ string_joins = (buckets[:string_join] || []).map { |x| x.strip }.uniq
join_list = join_nodes + custom_join_ast(manager, string_joins)