Sha256: cfaa1e0099562f1dbe611555443143f70a2e9dc335727a36c9f305bf5713619f

Contents?: true

Size: 350 Bytes

Versions: 2

Compression:

Stored size: 350 Bytes

Contents

class RefererTracking::Sweeper < ActionController::Caching::Sweeper
  # https://github.com/rails/rails-observers/blob/master/lib/rails/observers/active_model/observing.rb

  def after_create(record)
    if controller && controller.respond_to?(:referer_tracking_after_create)
      controller.referer_tracking_after_create(record)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
referer_tracking-4.2.0 lib/referer_tracking/sweeper.rb
referer_tracking-4.1.0 lib/referer_tracking/sweeper.rb