Class: Chaskiq::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Chaskiq::ApplicationController
show all
- Defined in:
- app/controllers/chaskiq/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#authentication_method ⇒ Object
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_referrer ⇒ Object
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
|