From 2eb547a4d9cfb4ed1c92397921402048162f5fc8 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Wed, 28 May 2014 08:24:59 -0700 Subject: Refactor serialized types to be partially defined as custom properties Many of the methods defined in `AttributeMethods::Serialization` can be refactored onto this type as well, but this is a reasonable small step. Removes the `Type` class, and the need for `decorate_columns` to handle serialized types. --- activerecord/lib/active_record/type/value.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/lib/active_record/type/value.rb') diff --git a/activerecord/lib/active_record/type/value.rb b/activerecord/lib/active_record/type/value.rb index 72d27197d5..a5493be8f2 100644 --- a/activerecord/lib/active_record/type/value.rb +++ b/activerecord/lib/active_record/type/value.rb @@ -43,6 +43,10 @@ module ActiveRecord false end + def serialized? + false + end + def klass ::Object end -- cgit v1.2.3