1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Ryuta Kamizono 75c309c7ad Add back decorate_attribute_type
Originally #39882 is intended to remove `decorate_matching_attribute_type`
but leave `decorate_attribute_type` at that point, but in the
disscussion in #39882, to demonstrate removing `AttributeDecorators`
module, I've removed all decoration methods.

I wrote user-defined type decoration as inline, I wasn't sure that is
valid (meaningful) usage (that is a reason why I wasn't in a hurry to
remove that method), as I said at https://github.com/rails/rails/pull/39882#discussion_r457750898.

In #39897 and #39902, `enum` also need to support user-defined type
decoration, so I've decided to add back `decorate_attribute_type` as
before #39882.
2020-07-27 14:16:56 +09:00
..
active_record Add back decorate_attribute_type 2020-07-27 14:16:56 +09:00
arel Move Arel attribute normalization into arel_table 2020-07-19 23:41:24 +09:00
rails/generators
active_record.rb Restore legacy YAML compatibility for MySQL with active_record_yaml_version: 1 2020-06-25 21:04:51 +09:00
arel.rb