Sha256: 0ef0ca6d3a5c2a8b58d85c93b145571f9f6aaaad6264b9e6757a000486707957

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

module Ahoy
  class BaseController < ApplicationController
    # skip all filters except for authlogic
    filters = _process_action_callbacks.map(&:filter) - [:load_authlogic]
    if respond_to?(:skip_action)
      skip_action *filters
    else
      skip_filter *filters
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ahoy_matey-1.2.2 app/controllers/ahoy/base_controller.rb