Class: Comable::OptionType
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comable::OptionType
- Includes:
- Ransackable
- Defined in:
- app/models/comable/option_type.rb
Instance Method Summary collapse
Instance Method Details
#values ⇒ Object
11 12 13 |
# File 'app/models/comable/option_type.rb', line 11 def values @values ? @values : option_values.map(&:name) end |
#values=(values) ⇒ Object
15 16 17 |
# File 'app/models/comable/option_type.rb', line 15 def values=(values) @values = values.is_a?(String) ? values.split(' ') : values end |