Class: SolidusPromotions::Conditions::Store
Instance Method Summary
collapse
included, #level
#applicable?, applicable_to, #eligibility_errors, #eligible?, eligible_method_for, inherited, #level, #to_partial_path
Instance Method Details
#order_eligible?(order, _options = {}) ⇒ Boolean
20
21
22
|
# File 'app/models/solidus_promotions/conditions/store.rb', line 20
def order_eligible?(order, _options = {})
stores.none? || stores.include?(order.store)
end
|
#preload_relations ⇒ Object
16
17
18
|
# File 'app/models/solidus_promotions/conditions/store.rb', line 16
def preload_relations
[:stores]
end
|
#updateable? ⇒ Boolean
24
25
26
|
# File 'app/models/solidus_promotions/conditions/store.rb', line 24
def updateable?
true
end
|