diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-02-28 01:26:39 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-02-28 01:26:39 +0300 |
commit | cb400b0c654e62c99dca1faf052c9389c58d692c (patch) | |
tree | 376bb0547e561d22ba9ed65a076883663fec71d5 /activerecord | |
parent | 2adf78d335dd55ef39559e9e209f1ce96c948095 (diff) | |
download | rails-cb400b0c654e62c99dca1faf052c9389c58d692c.tar.gz rails-cb400b0c654e62c99dca1faf052c9389c58d692c.tar.bz2 rails-cb400b0c654e62c99dca1faf052c9389c58d692c.zip |
remove unnecessary code
it was added in 36129f21b86db4bd69e932e586129e246c2a5ca8
but isn't useful anymore as corresponding tests pass without it
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/dirty.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb index 433d508357..3a737e5b35 100644 --- a/activerecord/lib/active_record/attribute_methods/dirty.rb +++ b/activerecord/lib/active_record/attribute_methods/dirty.rb @@ -58,8 +58,6 @@ module ActiveRecord @changed_attributes.delete(attr) unless _field_changed?(attr, old, value) else old = clone_attribute_value(:read_attribute, attr) - # Save Time objects as TimeWithZone if time_zone_aware_attributes == true - old = old.in_time_zone if clone_with_time_zone_conversion_attribute?(attr, old) @changed_attributes[attr] = old if _field_changed?(attr, old, value) end @@ -92,10 +90,6 @@ module ActiveRecord old != value end - - def clone_with_time_zone_conversion_attribute?(attr, old) - old.class.name == "Time" && time_zone_aware_attributes && !self.skip_time_zone_conversion_for_attributes.include?(attr.to_sym) - end end end end |