class Spree::Promo::Engine
Public Class Methods
activate()
click to toggle source
# File lib/spree/promo/engine.rb, line 7 def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../../app/**/*_decorator*.rb')) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end Spree::StoreController.class_eval do # Include list of visited paths in notification payload hash def default_notification_payload { :user => try_spree_current_user, :order => current_order, :visited_paths => session[:visited_paths] } end end end
Public Instance Methods
default_notification_payload()
click to toggle source
Include list of visited paths in notification payload hash
# File lib/spree/promo/engine.rb, line 14 def default_notification_payload { :user => try_spree_current_user, :order => current_order, :visited_paths => session[:visited_paths] } end