module Ahoy::Views::Viewer::ClassMethods

Public Instance Methods

ahoy_viewer() click to toggle source
# File lib/ahoy/views/viewer.rb, line 9
def ahoy_viewer
    has_many :ahoy_visits, as: :visitor, class_name: 'Ahoy::Event'
    has_many :ahoy_viewed, through: :ahoy_visits, source: :visited
end