1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/lib/devise/hooks/proxy.rb

22 lines
451 B
Ruby
Raw Normal View History

module Devise
module Hooks
# A small warden proxy so we can remember, forget and
# sign out users from hooks.
class Proxy #:nodoc:
include Devise::Controllers::Rememberable
include Devise::Controllers::SignInOut
attr_reader :warden
2014-02-25 11:42:55 -05:00
delegate :cookies, :env, to: :warden
def initialize(warden)
@warden = warden
end
def session
warden.request.session
end
end
end
2013-12-05 03:03:32 -05:00
end