Sha256: 4157be732abc1a5c918c2e66399f9720437ed3b6e7ef13537ec30671bce62ecf
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 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
6 entries across 6 versions & 1 rubygems