ordering matters

This commit is contained in:
Elias Fradelos 2016-03-01 07:47:08 -06:00 committed by Brian Hempel
parent eac87a82d0
commit fe7e0a5885
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module ActiveRecord
)
relation = @klass.unscoped.from(from)
relation.bind_values = self.bind_values + self.arel.bind_values + other.bind_values + other.arel.bind_values
relation.bind_values = self.arel.bind_values + self.bind_values + other.arel.bind_values + other.bind_values
relation
end