Sha256: e4b175ca7d61506e5ac79ecd4050a15ca83c4c204780f7b66c42721190c70ace

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

class UnscopedController < ActionController::Base
  def authenticate
    github_authenticate!
    head :ok
  end

  def logout
    was_logged_in = !github_user.nil?
    github_logout
    render plain: was_logged_in
  end

  def authenticated
    render plain: github_authenticated?
  end

  def user
    render plain: github_user
  end

  def session
    if github_session
      github_session[:foo] = :bar
    end

    render json: github_session
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
warden-github-rails-1.3.0 spec/rails_app/app/controllers/unscoped_controller.rb
warden-github-rails-1.2.3 spec/rails_app/app/controllers/unscoped_controller.rb