Class: ExtendableEnum::ExtendableEnumType
- Inherits:
-
ActiveRecord::Enum::EnumType
- Object
- ActiveRecord::Enum::EnumType
- ExtendableEnum::ExtendableEnumType
- Defined in:
- app/models/concerns/extendable_enum.rb
Instance Method Summary collapse
Instance Method Details
#add_value(value) ⇒ Object
5 6 7 |
# File 'app/models/concerns/extendable_enum.rb', line 5 def add_value(value) @mapping[value] = value.to_s end |
#values ⇒ Object
9 10 11 |
# File 'app/models/concerns/extendable_enum.rb', line 9 def values @mapping.freeze end |