diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-07-30 14:16:36 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-07-30 17:54:01 -0500 |
commit | 89e9efcbe245475dec1206373755f075e17fa3e2 (patch) | |
tree | bdb72200a1fe350e703d91790749edceabff1789 /activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb | |
parent | 2c30c9fe6c22f0342aa0be3909efa3a5787dc33d (diff) | |
download | rails-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/time_zone_conversion.rb')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb b/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb index f379b4c0f8..9e2c6174c6 100644 --- a/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb +++ b/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb @@ -25,7 +25,7 @@ module ActiveRecord @attributes_cache['#{attr_name}'] = time.acts_like?(:time) ? time.in_time_zone : time end EOV - evaluate_attribute_method attr_name, method_body, attr_name + evaluate_attribute_method method_body, attr_name else super end @@ -44,7 +44,7 @@ module ActiveRecord write_attribute(:#{attr_name}, time) end EOV - evaluate_attribute_method attr_name, method_body, "#{attr_name}=" + evaluate_attribute_method method_body, "#{attr_name}=" else super end |