aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods/write.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-07-30 14:16:36 -0500
committerJoshua Peek <josh@joshpeek.com>2009-07-30 17:54:01 -0500
commit89e9efcbe245475dec1206373755f075e17fa3e2 (patch)
treebdb72200a1fe350e703d91790749edceabff1789 /activerecord/lib/active_record/attribute_methods/write.rb
parent2c30c9fe6c22f0342aa0be3909efa3a5787dc33d (diff)
downloadrails-89e9efcbe245475dec1206373755f075e17fa3e2.tar.gz
rails-89e9efcbe245475dec1206373755f075e17fa3e2.tar.bz2
rails-89e9efcbe245475dec1206373755f075e17fa3e2.zip
Don't need to pass attr_name to evaluate_attribute_method anymore
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods/write.rb')
-rw-r--r--activerecord/lib/active_record/attribute_methods/write.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/write.rb b/activerecord/lib/active_record/attribute_methods/write.rb
index b4f2f6eb1d..497e72ee4a 100644
--- a/activerecord/lib/active_record/attribute_methods/write.rb
+++ b/activerecord/lib/active_record/attribute_methods/write.rb
@@ -10,7 +10,7 @@ module ActiveRecord
module ClassMethods
protected
def define_attribute_method=(attr_name)
- evaluate_attribute_method attr_name, "def #{attr_name}=(new_value); write_attribute('#{attr_name}', new_value); end", "#{attr_name}="
+ evaluate_attribute_method "def #{attr_name}=(new_value); write_attribute('#{attr_name}', new_value); end", "#{attr_name}="
end
end