diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-14 07:39:32 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-14 07:39:32 -0700 |
commit | 85b40edd949678abe2a50a4291029be123cb03c5 (patch) | |
tree | 374a5de80d0eed66854af2cddb2384ffe35a7305 /activerecord/lib/active_record/type | |
parent | ee74d9c969140117293338fa61e35edcca07298d (diff) | |
download | rails-85b40edd949678abe2a50a4291029be123cb03c5.tar.gz rails-85b40edd949678abe2a50a4291029be123cb03c5.tar.bz2 rails-85b40edd949678abe2a50a4291029be123cb03c5.zip |
Use `DelegateClass` instead of `SimpleDelegator` for type decorators
There is a significant performance difference between the two. Closes
Diffstat (limited to 'activerecord/lib/active_record/type')
-rw-r--r-- | activerecord/lib/active_record/type/serialized.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/serialized.rb b/activerecord/lib/active_record/type/serialized.rb index 17004b3593..3191a868ef 100644 --- a/activerecord/lib/active_record/type/serialized.rb +++ b/activerecord/lib/active_record/type/serialized.rb @@ -1,6 +1,6 @@ module ActiveRecord module Type - class Serialized < SimpleDelegator # :nodoc: + class Serialized < DelegateClass(Type::Value) # :nodoc: include Mutable include Decorator |