Class: SqlEnum::EnumType
- Inherits:
-
ActiveRecord::Enum::EnumType
- Object
- ActiveRecord::Enum::EnumType
- SqlEnum::EnumType
- Defined in:
- lib/sql_enum/enum_type.rb
Overview
EnumType that always returns a symbol
Instance Method Summary collapse
Instance Method Details
#cast(arg) ⇒ Object
4 5 6 |
# File 'lib/sql_enum/enum_type.rb', line 4 def cast(arg) super&.to_sym end |
#deserialize(arg) ⇒ Object
8 9 10 |
# File 'lib/sql_enum/enum_type.rb', line 8 def deserialize(arg) super&.to_sym end |