Skip to content
Browse files

converge three lines into one

  • Loading branch information...
1 parent 070dda2 commit aeafc09921116e356494e1effc7cf61435f22104 Neeraj Singh committed Apr 10, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 activerecord/lib/active_record/relation/query_methods.rb
View
4 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)

0 comments on commit aeafc09

Please sign in to comment.
Something went wrong with that request. Please try again.