mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e0366022f6
If type is given as a symbol, it will lookup a fresh type object via `Type.lookup`, but if type is omitted, `type_for_attribute` will lookup the database type which is already decorated by `define_attribute`. To avoid the double decoration, skip extra decoration if its type is already decorated. |
||
---|---|---|
.. | ||
optimistic.rb | ||
pessimistic.rb |