Sha256: 55ba055306b723fb606ba4f2a1735c3650206208695ed2dde6cc77a3560deeb8

Contents?: true

Size: 369 Bytes

Versions: 30

Compression:

Stored size: 369 Bytes

Contents

module Workarea
  module CurrentReferrer
    def current_referrer
      return @current_referrer if defined?(@current_referrer)

      referrer = cookies['workarea_referrer']
      return unless referrer.present?

      @current_referrer ||= TrafficReferrer.new(
        RefererParser::Parser.new.parse(referrer).slice(:source, :medium, :uri)
      )
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
workarea-core-3.4.41 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.40 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.39 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.38 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.37 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.36 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.35 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.34 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.33 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.32 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.31 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.30 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.29 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.28 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.27 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.26 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.25 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.24 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.23 app/controllers/workarea/current_referrer.rb
workarea-core-3.4.22 app/controllers/workarea/current_referrer.rb