Module: Sinatra::Janus::Helpers
- Defined in:
- lib/janus/sinatra.rb
Instance Method Summary collapse
Instance Method Details
#authenticate!(scope) ⇒ Object
11 12 13 |
# File 'lib/janus/sinatra.rb', line 11 def authenticate!(scope) janus.authenticate!(scope) end |
#janus ⇒ Object
7 8 9 |
# File 'lib/janus/sinatra.rb', line 7 def janus @janus ||= ::Janus::Manager.new(request, request.) end |
#signed_in?(scope) ⇒ Boolean
15 16 17 |
# File 'lib/janus/sinatra.rb', line 15 def signed_in?(scope) janus.authenticate?(scope) end |