diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-17 11:29:51 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-17 13:28:48 -0700 |
commit | 4a3cb840b0c992b0f15b66274dfa7de71a38fa03 (patch) | |
tree | 12911fe78b638c8328b8c882f02d3d0c35c29134 /activerecord/test/cases/attribute_decorators_test.rb | |
parent | b3fdf9c596e4821e0028472b9c2740fd4d6655c8 (diff) | |
download | rails-4a3cb840b0c992b0f15b66274dfa7de71a38fa03.tar.gz rails-4a3cb840b0c992b0f15b66274dfa7de71a38fa03.tar.bz2 rails-4a3cb840b0c992b0f15b66274dfa7de71a38fa03.zip |
`Type#type_cast_from_database` -> `Type#deserialize`
Diffstat (limited to 'activerecord/test/cases/attribute_decorators_test.rb')
-rw-r--r-- | activerecord/test/cases/attribute_decorators_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/attribute_decorators_test.rb b/activerecord/test/cases/attribute_decorators_test.rb index 0b96319cbd..167db8147b 100644 --- a/activerecord/test/cases/attribute_decorators_test.rb +++ b/activerecord/test/cases/attribute_decorators_test.rb @@ -16,7 +16,7 @@ module ActiveRecord "#{super} #{@decoration}" end - alias type_cast_from_database type_cast_from_user + alias deserialize type_cast_from_user end setup do @@ -106,7 +106,7 @@ module ActiveRecord return if value.nil? value * 2 end - alias type_cast_from_database type_cast_from_user + alias deserialize type_cast_from_user end test "decorating with a proc" do |