Module: Spree::Admin::PromotionsHelper

Defined in:
app/helpers/spree/admin/promotions_helper.rb

Instance Method Summary collapse

Instance Method Details

#admin_promotion_status(promotion) ⇒ Object



6
7
8
9
10
11
12
# File 'app/helpers/spree/admin/promotions_helper.rb', line 6

def admin_promotion_status(promotion)
  return :active if promotion.active?
  return :not_started if promotion.not_started?
  return :expired if promotion.expired?

  :inactive
end