Sha256: 6791a9436534bd5ce037c93c579c6f1e690faf6854f76172bc33d6d0b6ab82d1

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

require "wicked"

module Chaskiq
  class ApplicationController < ActionController::Base

    def get_referrer
      ip = request.ip
      ip = env['HTTP_X_FORWARDED_FOR'].split(",").first if Rails.env.production?
    end

    def authentication_method
      if meth = Chaskiq::Config.authentication_method
        self.send meth
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chaskiq-0.0.6 app/controllers/chaskiq/application_controller.rb
chaskiq-0.0.5 app/controllers/chaskiq/application_controller.rb
chaskiq-0.0.4 app/controllers/chaskiq/application_controller.rb
chaskiq-0.0.3 app/controllers/chaskiq/application_controller.rb
chaskiq-0.0.2 app/controllers/chaskiq/application_controller.rb