Class: PageView

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
E9Rails::ActiveRecord::Scopes::Times
Defined in:
app/models/page_view.rb

Overview

A visit to the site

Page views belong to a tracking cookie, from which it derives its campaign code, and whether or not it is a “new visit” for the given campaign code.

Also stored from the request:

request_path

The full request path

user_agent

The request user agent

referer

The request referer if it exists

remote_ip

The originating ip address of the request

session

The session id of the request

Instance Attribute Summary collapse

Instance Attribute Details

#should_cacheObject

Returns the value of attribute should_cache.



23
24
25
# File 'app/models/page_view.rb', line 23

def should_cache
  @should_cache
end