Module: Jwtauth::Test::IntegrationHelpers

Defined in:
lib/jwtauth.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



511
512
513
514
515
# File 'lib/jwtauth.rb', line 511

def self.included(base)
  base.class_eval do
    setup :setup_integration_for_jwtauth
  end
end

Instance Method Details

#sign_in(resource) ⇒ Object



517
518
519
# File 'lib/jwtauth.rb', line 517

def (resource)
  Jwtauth.current_user = resource
end