1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

cleanup whitespace in active_record/relation.rb.

This commit is contained in:
Yves Senn 2013-05-27 20:54:05 +02:00
parent c3890d38cb
commit 95ce5062ca

View file

@ -76,10 +76,10 @@ module ActiveRecord
def update_record(values, id, id_was) # :nodoc:
substitutes, binds = substitute_values values
um = @klass.unscoped.where(@klass.arel_table[@klass.primary_key].eq(id_was || id)).arel.compile_update(substitutes)
@klass.connection.update(
um,
'SQL',
um,
'SQL',
binds)
end
@ -94,7 +94,7 @@ module ActiveRecord
end
[substitutes, binds]
end
end
# Initializes new record from relation while maintaining the current
# scope.