diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-17 13:35:23 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-17 13:35:23 -0700 |
commit | 1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06 (patch) | |
tree | 563934e8d0a050c4bc01079aca604941c27682f2 /activerecord/lib/active_record/type_caster/map.rb | |
parent | 4a3cb840b0c992b0f15b66274dfa7de71a38fa03 (diff) | |
download | rails-1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06.tar.gz rails-1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06.tar.bz2 rails-1455c4c22feb24b0ff2cbb191afb0bd98ebf7b06.zip |
`type_cast_for_database` -> `serialize`
Diffstat (limited to 'activerecord/lib/active_record/type_caster/map.rb')
-rw-r--r-- | activerecord/lib/active_record/type_caster/map.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type_caster/map.rb b/activerecord/lib/active_record/type_caster/map.rb index 03c9e8ff83..4b1941351c 100644 --- a/activerecord/lib/active_record/type_caster/map.rb +++ b/activerecord/lib/active_record/type_caster/map.rb @@ -8,7 +8,7 @@ module ActiveRecord def type_cast_for_database(attr_name, value) return value if value.is_a?(Arel::Nodes::BindParam) type = types.type_for_attribute(attr_name.to_s) - type.type_cast_for_database(value) + type.serialize(value) end protected |