Class: Spree::Download
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::Download
- Defined in:
- app/models/spree/download.rb
Instance Method Summary collapse
-
#is_relevant_for_product?(product) ⇒ Boolean
Bepaalt of deze download relevant is voor het meegegeven product.
Instance Method Details
#is_relevant_for_product?(product) ⇒ Boolean
Bepaalt of deze download relevant is voor het meegegeven product.
11 12 13 |
# File 'app/models/spree/download.rb', line 11 def is_relevant_for_product?(product) self.products.include?(product) end |