Sha256: 4932714c43700587d176d54873abf1852e72e0a9c03e7948b3f18bae8be8dc9a

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

module Ahoy
  class BaseController < ApplicationController
    # skip all filters except for authlogic
    skip_filter *(_process_action_callbacks.map(&:filter) - [:load_authlogic])

    def ahoy
      @ahoy ||= Ahoy::Tracker.new(controller: self, api: true)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ahoy_matey-1.2.1 app/controllers/ahoy/base_controller.rb
ahoy_matey-1.2.0 app/controllers/ahoy/base_controller.rb