aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-27 18:47:47 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-28 23:25:03 -0200
commit2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb (patch)
tree23a814ed1e574b69479bd0d58c58cfbb63660000 /activerecord/lib/active_record/persistence.rb
parent439ac72013fc1b819e711d66642b0b5b563fd72e (diff)
downloadrails-2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb.tar.gz
rails-2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb.tar.bz2
rails-2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb.zip
Refactor to use each_key, remove extra spaces
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 1b2aa9349e..803cae7115 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -220,7 +220,7 @@ module ActiveRecord
save
end
end
-
+
alias update_attributes update
# Updates its receiver just like +update+ but calls <tt>save!</tt> instead
@@ -233,7 +233,7 @@ module ActiveRecord
save!
end
end
-
+
alias update_attributes! update!
# Equivalent to <code>update_columns(name => value)</code>.