diff options
Diffstat (limited to 'activerecord/lib/active_record/type/value.rb')
-rw-r--r-- | activerecord/lib/active_record/type/value.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/type/value.rb b/activerecord/lib/active_record/type/value.rb index a5493be8f2..9a4adc60cc 100644 --- a/activerecord/lib/active_record/type/value.rb +++ b/activerecord/lib/active_record/type/value.rb @@ -23,10 +23,6 @@ module ActiveRecord cast_value(value) unless value.nil? end - def type_cast_for_write(value) - value - end - def type_cast_for_database(value) type_cast_for_write(value) end @@ -47,10 +43,15 @@ module ActiveRecord false end - def klass + def klass # :nodoc: ::Object end + def type_cast_for_write(value) # :nodoc: + value + end + alias_method :raw_type_cast_for_write, :type_cast_for_write # :internal: + private # Responsible for casting values from external sources to the appropriate |