Class: SolidusFriendlyPromotions::Conditions::Store
Instance Method Summary
collapse
#applicable?, #level
#applicable?, #eligibility_errors, #level, #to_partial_path
Instance Method Details
#eligible?(order, _options = {}) ⇒ Boolean
17
18
19
|
# File 'app/models/solidus_friendly_promotions/conditions/store.rb', line 17
def eligible?(order, _options = {})
stores.none? || stores.include?(order.store)
end
|
#preload_relations ⇒ Object
13
14
15
|
# File 'app/models/solidus_friendly_promotions/conditions/store.rb', line 13
def preload_relations
[:stores]
end
|
#updateable? ⇒ Boolean
21
22
23
|
# File 'app/models/solidus_friendly_promotions/conditions/store.rb', line 21
def updateable?
true
end
|