Module: ActiveUUID::Patches::PostgreSQLColumn
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/activeuuid/patches.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(_klass) ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/activeuuid/patches.rb', line 105 def self.prepended(_klass) def type_cast(value) return UUIDTools::UUID.serialize(value) if type == :uuid super end def simplified_type(field_type) return :uuid if field_type == "uuid" super end end |
Instance Method Details
#simplified_type(field_type) ⇒ Object
111 112 113 114 |
# File 'lib/activeuuid/patches.rb', line 111 def simplified_type(field_type) return :uuid if field_type == "uuid" super end |