From aeafc09921116e356494e1effc7cf61435f22104 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Wed, 10 Apr 2013 14:34:03 -0400 Subject: [PATCH] converge three lines into one --- activerecord/lib/active_record/relation/query_methods.rb | 4 +--- 1 file changed, 1 insertion(+), 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 @@ def build_joins(manager, joins) 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)