Class: SpreeCmCommissioner::Configuration
- Inherits:
-
Spree::Preferences::Configuration
- Object
- Spree::Preferences::Configuration
- SpreeCmCommissioner::Configuration
- Defined in:
- app/models/spree_cm_commissioner/configuration.rb
Instance Method Summary collapse
Instance Method Details
#array_patch(key) ⇒ Object
25 26 27 |
# File 'app/models/spree_cm_commissioner/configuration.rb', line 25 def array_patch(key) array_patch_value(self[key]) end |
#array_patch_value(value) ⇒ Object
18 19 20 21 22 23 |
# File 'app/models/spree_cm_commissioner/configuration.rb', line 18 def array_patch_value(value) return [] if value.blank? return value.split(',').compact_blank if instance_of?(String) value.compact_blank end |