Class: Spree::Download

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spree/download.rb

Instance Method Summary collapse

Instance Method Details

#is_relevant_for_product?(product) ⇒ Boolean

Bepaalt of deze download relevant is voor het meegegeven product.

Returns:

  • (Boolean)


11
12
13
# File 'app/models/spree/download.rb', line 11

def is_relevant_for_product?(product)
  self.products.include?(product)
end