Method: Spree::Product#possible_promotions

Defined in:
app/models/spree/product.rb

#possible_promotionsArray

Returns all advertised and not-rejected promotions.

Returns:

  • (Array)

    all advertised and not-rejected promotions



260
261
262
# File 'app/models/spree/product.rb', line 260

def possible_promotions
  Spree::Config.promotions.advertiser_class.for_product(self)
end