Module: Upkeep::Runtime::WardenObserver

Defined in:
lib/upkeep/runtime.rb

Instance Method Summary collapse

Instance Method Details

#authenticate(*args, **options, &block) ⇒ Object



707
708
709
710
711
# File 'lib/upkeep/runtime.rb', line 707

def authenticate(*args, **options, &block)
  value = super
  Runtime::Ambient.record_warden_user(warden_authentication_scope(args, options), value)
  value
end

#authenticate!(*args, **options, &block) ⇒ Object



713
714
715
716
717
# File 'lib/upkeep/runtime.rb', line 713

def authenticate!(*args, **options, &block)
  value = super
  Runtime::Ambient.record_warden_user(warden_authentication_scope(args, options), value)
  value
end

#user(*args, **options, &block) ⇒ Object



701
702
703
704
705
# File 'lib/upkeep/runtime.rb', line 701

def user(*args, **options, &block)
  value = super
  Runtime::Ambient.record_warden_user(warden_user_scope(args, options), value)
  value
end