aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/helpers
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-17 11:29:51 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-17 13:28:48 -0700
commit4a3cb840b0c992b0f15b66274dfa7de71a38fa03 (patch)
tree12911fe78b638c8328b8c882f02d3d0c35c29134 /activerecord/lib/active_record/type/helpers
parentb3fdf9c596e4821e0028472b9c2740fd4d6655c8 (diff)
downloadrails-4a3cb840b0c992b0f15b66274dfa7de71a38fa03.tar.gz
rails-4a3cb840b0c992b0f15b66274dfa7de71a38fa03.tar.bz2
rails-4a3cb840b0c992b0f15b66274dfa7de71a38fa03.zip
`Type#type_cast_from_database` -> `Type#deserialize`
Diffstat (limited to 'activerecord/lib/active_record/type/helpers')
-rw-r--r--activerecord/lib/active_record/type/helpers/mutable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/type/helpers/mutable.rb b/activerecord/lib/active_record/type/helpers/mutable.rb
index dc37f4a885..9af39aa9fb 100644
--- a/activerecord/lib/active_record/type/helpers/mutable.rb
+++ b/activerecord/lib/active_record/type/helpers/mutable.rb
@@ -3,7 +3,7 @@ module ActiveRecord
module Helpers
module Mutable # :nodoc:
def type_cast_from_user(value)
- type_cast_from_database(type_cast_for_database(value))
+ deserialize(type_cast_for_database(value))
end
# +raw_old_value+ will be the `_before_type_cast` version of the