Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Enum

Inherits:
Type
  • Object
show all
Defined in:
lib/active_record/pg_enum/4.1/initialize_type_map.rb

Instance Method Summary collapse

Instance Method Details

#typeObject



30
31
32
# File 'lib/active_record/pg_enum/4.1/initialize_type_map.rb', line 30

def type
  :enum
end

#type_cast(value) ⇒ Object



34
35
36
# File 'lib/active_record/pg_enum/4.1/initialize_type_map.rb', line 34

def type_cast(value)
  value
end