Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 324 Bytes
# Rails authentication gem:
# https://github.com/hassox/rails_warden
# Warden documentation:
# https://github.com/hassox/warden/wiki
# Warden injects a lazy object into the Rack environment at env['warden']
env['warden']
request.env['warden'].set_user(@user) # signin the user
request.env['warden'].user # the user object
Jump to Line
Something went wrong with that request. Please try again.