diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-13 15:45:49 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-13 15:45:49 -0300 |
commit | e61e1b30a5751e1e216b18edfb49661b511d7ce2 (patch) | |
tree | 4499b68485a21993f2b7d07b850cf07462df07a9 /activerecord/test/cases/adapters/postgresql | |
parent | cc255d3424207ebb3952029df4a485c696b0dc6e (diff) | |
parent | 6f08db05c00ea05c38d7d9d7bea757a903786a83 (diff) | |
download | rails-e61e1b30a5751e1e216b18edfb49661b511d7ce2.tar.gz rails-e61e1b30a5751e1e216b18edfb49661b511d7ce2.tar.bz2 rails-e61e1b30a5751e1e216b18edfb49661b511d7ce2.zip |
Merge pull request #15593 from sgrif/sg-attribute
Introduce an Attribute object to handle the type casting dance
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/composite_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/composite_test.rb b/activerecord/test/cases/adapters/postgresql/composite_test.rb index 0b48fe9af8..42c68cdae7 100644 --- a/activerecord/test/cases/adapters/postgresql/composite_test.rb +++ b/activerecord/test/cases/adapters/postgresql/composite_test.rb @@ -84,7 +84,7 @@ class PostgresqlCompositeWithCustomOIDTest < ActiveRecord::TestCase class FullAddressType < ActiveRecord::Type::Value def type; :full_address end - def type_cast(value) + def type_cast_from_database(value) if value =~ /\("?([^",]*)"?,"?([^",]*)"?\)/ FullAddress.new($1, $2) end |