diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-05-13 16:33:22 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-05-13 16:51:04 +0200 |
commit | 6470f374c98e893f460e0db29ad1d535fe028794 (patch) | |
tree | e5ca2034cf49fbdcbd30be3d21ab6c38770b7b55 /actionview/test/template/form_options_helper_i18n_test.rb | |
parent | 15285f22483363d2fee8b501a1f2a39de03d7473 (diff) | |
download | rails-6470f374c98e893f460e0db29ad1d535fe028794.tar.gz rails-6470f374c98e893f460e0db29ad1d535fe028794.tar.bz2 rails-6470f374c98e893f460e0db29ad1d535fe028794.zip |
pg, clarify default behavior for composite types.
* by default composite types are mapped as `OID::Identity` and issue a warning
* the user is advised to register his own `OID::Type` to make use of composite types
Registering a new `OID::Type` does currently not allow to specify the type casting
behavior when writing to the database. In order for it to work we need to use the
values within `@attributes`. They are already being type casted and are ready to be
written to the DB.
See https://github.com/rails/rails/blob/57643c961feb24b662620d330e71103a830003e8/activerecord/lib/active_record/attribute_methods.rb#L460-L462
Diffstat (limited to 'actionview/test/template/form_options_helper_i18n_test.rb')
0 files changed, 0 insertions, 0 deletions