Class: ActiveRecord::Type::UUID
- Inherits:
-
Binary
- Object
- Binary
- ActiveRecord::Type::UUID
- Defined in:
- lib/activeuuid/patches.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#cast_value(value) ⇒ Object
12 13 14 |
# File 'lib/activeuuid/patches.rb', line 12 def cast_value(value) UUIDTools::UUID.serialize(value) end |
#type ⇒ Object
8 9 10 |
# File 'lib/activeuuid/patches.rb', line 8 def type :uuid end |