module Sinatra::GAuth::Helpers
Public Instance Methods
protect_with_gauth!()
click to toggle source
# File lib/sinatra/g_auth.rb, line 9 def protect_with_gauth! redirect "#{request.script_name}/auth/g" unless session[:_gauth] end