Sha256: c002d55469bc3b57f7680ec45888381c137bd2c3236fcd28fc784360ae5baac7
Contents?: true
Size: 604 Bytes
Versions: 28
Compression:
Stored size: 604 Bytes
Contents
module Spree module Admin class PromotionsController < ResourceController before_filter :load_data before_filter :load_event_names helper 'spree/promotion_rules' protected def location_after_save spree.edit_admin_promotion_url(@promotion) end def load_data @calculators = Rails.application.config.spree.calculators.promotion_actions_create_adjustments end def load_event_names @event_names = Spree::Activator.event_names.map { |name| [Spree.t("events.#{name}"), name] } end end end end
Version data entries
28 entries across 28 versions & 1 rubygems