Class: Chaskiq::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/chaskiq/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#authentication_methodObject



11
12
13
14
15
# File 'app/controllers/chaskiq/application_controller.rb', line 11

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

#get_referrerObject



6
7
8
9
# File 'app/controllers/chaskiq/application_controller.rb', line 6

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