Sha256: d75cf04807fb02787dcd14b37debbefc5f1833e5105fdf16a1824777eb040bfc

Contents?: true

Size: 368 Bytes

Versions: 32

Compression:

Stored size: 368 Bytes

Contents

Spree::ContentController.class_eval do
  after_filter :fire_visited_path, :only => :show
  after_filter :fire_visited_action, :except => :show

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

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

end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
spree_promo-1.3.5 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.4 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.5 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.3 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.1.6 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.1.5 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.4 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.2 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.0.7 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.3 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.1 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.0 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.0.rc2 app/controllers/spree/content_controller_decorator.rb
dup_spree_promo-1.3.0.rc1 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.3.0.rc1 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.2 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.1.4 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.0 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.0.rc2 app/controllers/spree/content_controller_decorator.rb
spree_promo-1.2.0.rc1 app/controllers/spree/content_controller_decorator.rb