Class: AnyLogin::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
AnyLogin.provider.constantize::Controller, Clearance::Controller
Defined in:
app/controllers/any_login/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#any_loginObject



16
17
18
19
20
# File 'app/controllers/any_login/application_controller.rb', line 16

def 
  head 403 && return unless AnyLogin.verify_access_proc.call(self)
  add_to_previous
  AnyLogin.provider.constantize::Controller.instance_method(:any_login_sign_in).bind(self).call
end

#cssObject



22
23
24
# File 'app/controllers/any_login/application_controller.rb', line 22

def css
  send_file AnyLogin::Engine.root.join('app', 'assets', 'stylesheets', 'any_login', 'application.css'), content_type: 'text/css'
end

#jsObject



26
27
28
# File 'app/controllers/any_login/application_controller.rb', line 26

def js
  send_file AnyLogin::Engine.root.join('app', 'assets', 'javascripts', 'any_login', 'application.js'), content_type: 'text/javascript'
end