Sha256: ac91f04802fca73d9ce53d0c3737aa419d08bd6c04249fa1cb88bd093315ba83

Contents?: true

Size: 307 Bytes

Versions: 10

Compression:

Stored size: 307 Bytes

Contents

# Keep a record ot all static page paths visited for promotions that require them
ContentController.class_eval do
  after_filter :store_visited_path
  def store_visited_path
    session[:visited_paths] ||= []
    session[:visited_paths] = (session[:visited_paths]  + [params[:path]]).compact.uniq
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_promo-0.70.7 app/controllers/content_controller_decorator.rb
spree_promo-0.70.6 app/controllers/content_controller_decorator.rb
spree_promo-0.70.5 app/controllers/content_controller_decorator.rb
spree_promo-0.70.4 app/controllers/content_controller_decorator.rb
spree_promo-0.70.3 app/controllers/content_controller_decorator.rb
spree_promo-0.70.2 app/controllers/content_controller_decorator.rb
spree_promo-0.70.1 app/controllers/content_controller_decorator.rb
spree_promo-0.70.0 app/controllers/content_controller_decorator.rb
spree_promo-0.70.0.rc2 app/controllers/content_controller_decorator.rb
spree_promo-0.70.RC1 app/controllers/content_controller_decorator.rb