Sha256: d3c8228f26cbed5149758563c1ed0972af9774cfd42ea9f0ad541653e58e0d1f

Contents?: true

Size: 382 Bytes

Versions: 31

Compression:

Stored size: 382 Bytes

Contents

class HomeController < ApplicationController
  def index
  end

  def sign_in
    session[:user_id] = if Rails.env.development?
                          User.first || User.create!(name: 'Joe', password: 'sekret')
                        else
                          User.first
                        end
    redirect_to '/'
  end

  def callback
    render text: 'ok'
  end
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
doorkeeper-2.0.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-1.4.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-2.0.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-2.0.0.rc3 spec/dummy/app/controllers/home_controller.rb
doorkeeper-2.0.0.rc2 spec/dummy/app/controllers/home_controller.rb
doorkeeper-2.0.0.alpha1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-1.4.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-1.3.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-grants_assertion-0.0.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-1.3.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-1.2.0 spec/dummy/app/controllers/home_controller.rb