Permalink
Browse files

use | to have more intent revealing code

thanks to @egilburg for suggestion
  • Loading branch information...
1 parent 98e42bc commit 2f0acf6a0a82e60d670b90d39d1278c55fdfe766 Neeraj Singh committed Apr 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/association_scope.rb
@@ -101,7 +101,7 @@ def add_constraints(scope)
scope.includes! item.includes_values
scope.where_values += item.where_values
- scope.order_values += (item.order_values - scope.order_values)
+ scope.order_values |= item.order_values
end
end

0 comments on commit 2f0acf6

Please sign in to comment.