Module: ProductGroupSearch
- Extended by:
- ActiveSupport::Concern
- Included in:
- ProductGroupCondition
- Defined in:
- lib/nimbleshop/product_group_search.rb,
lib/nimbleshop/product_group_search/extension.rb,
lib/nimbleshop/product_group_search/base_field.rb,
lib/nimbleshop/product_group_search/date_field.rb,
lib/nimbleshop/product_group_search/text_field.rb,
lib/nimbleshop/product_group_search/number_field.rb,
lib/nimbleshop/product_group_search/core_field_strategy.rb,
lib/nimbleshop/product_group_search/custom_field_strategy.rb
Defined Under Namespace
Modules: CoreFieldStrategy, CustomFieldStrategy, Extension
Classes: BaseField, DateField, NumberField, TextField
Instance Method Summary
collapse
Instance Method Details
#name=(val) ⇒ Object
31
32
33
34
35
36
|
# File 'lib/nimbleshop/product_group_search.rb', line 31
def name=(val)
val = val.try(:to_s)
if super(val)
prepare_instance
end
end
|
#summary ⇒ Object
38
39
40
|
# File 'lib/nimbleshop/product_group_search.rb', line 38
def summary
I18n.t(self.operator.to_sym, { field: localized_name, value: self.value })
end
|