Sha256: 8d3d39268ebd59def40f6bf9f776d125523630edeeaab42d7069e64031882da2

Contents?: true

Size: 196 Bytes

Versions: 3

Compression:

Stored size: 196 Bytes

Contents

Spree::ContentController.class_eval do
  after_filter :fire_visited_event

  def fire_visited_event
    fire_event('spree.content.visited', :path => path = "content/#{params[:action]}")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_promo-1.0.0 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.0.0.rc4 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.0.0.rc3 app/controllers/spree/content_controller_decorator.rb