diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-05-27 20:54:05 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-05-27 20:54:33 +0200 |
commit | 95ce5062ca973d1cd66c94512fac968da74b0f3a (patch) | |
tree | 0761494375fdf22d4d24bcef270fd96b0732a3d1 /activerecord | |
parent | c3890d38cbba97fd44f5b5a94f51ddb62a3ec71a (diff) | |
download | rails-95ce5062ca973d1cd66c94512fac968da74b0f3a.tar.gz rails-95ce5062ca973d1cd66c94512fac968da74b0f3a.tar.bz2 rails-95ce5062ca973d1cd66c94512fac968da74b0f3a.zip |
cleanup whitespace in `active_record/relation.rb`.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index 94ab465cc1..2439c3b440 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -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. |