Sha256: 0cfaf395aac3b1acdea81800d8e6a4b3dfe1e09667a4657f2f03f7eb12d5ef8b
Contents?: true
Size: 411 Bytes
Versions: 4
Compression:
Stored size: 411 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) ) rescue RefererParser::InvalidUriError end end end
Version data entries
4 entries across 4 versions & 1 rubygems