Class: ActiveRecord::Type::UUID

Inherits:
Binary
  • Object
show all
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

#typeObject



8
9
10
# File 'lib/activeuuid/patches.rb', line 8

def type
  :uuid
end