Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Inherits:
-
Type::Value
- Object
- Type::Value
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum
- Defined in:
- lib/marty/monkey.rb
Instance Method Summary collapse
Instance Method Details
#cast(value) ⇒ Object
224 225 226 |
# File 'lib/marty/monkey.rb', line 224 def cast(value) value && StringEnum.new(value) end |