Sha256: ec1a1ac62dea609c20203ce800022735b88040ef31a1af19b9d733f6fe643982
Contents?: true
Size: 487 Bytes
Versions: 4
Compression:
Stored size: 487 Bytes
Contents
class UnscopedController < ActionController::Base def authenticate github_authenticate! render :nothing => true end def logout was_logged_in = !github_user.nil? github_logout render :text => was_logged_in end def authenticated render :text => github_authenticated? end def user render :text => github_user end def session if (session = github_session) session[:foo] = :bar end render :text => github_session end end
Version data entries
4 entries across 4 versions & 2 rubygems