diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-02-02 10:30:44 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-02-02 10:30:44 -0700 |
commit | 473f63734a55d2a91083a619ce1395dfe32aec8d (patch) | |
tree | d7240b30f425db9afc45085925d4e5f037a524b0 | |
parent | 5bb26008ce7c979a87f0d8aef0dd10514838787f (diff) | |
download | rails-473f63734a55d2a91083a619ce1395dfe32aec8d.tar.gz rails-473f63734a55d2a91083a619ce1395dfe32aec8d.tar.bz2 rails-473f63734a55d2a91083a619ce1395dfe32aec8d.zip |
Ensure tz aware attributes continue to work with arrays
There was a typo in the variable name leading to infinite recursion
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb | 2 |
1 files changed, 1 insertions, 1 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 6d345689fa..ebaaa54b2b 100644 --- a/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb +++ b/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb @@ -47,7 +47,7 @@ module ActiveRecord if value.equal?(v) nil else - yield(value) + yield(v) end end end |