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

Version Path
warden-github-rails-thinknear-fork-1.1.0 spec/rails_app/app/controllers/unscoped_controller.rb
warden-github-rails-1.0.1 spec/rails_app/app/controllers/unscoped_controller.rb
warden-github-rails-1.0.0 spec/rails_app/app/controllers/unscoped_controller.rb
warden-github-rails-0.0.1 spec/rails_app/app/controllers/unscoped_controller.rb