Sha256: d1c1f79605d0b1c3f7232f47a29d0d171dae34d86badfda2c7948b6c90a5d7c9

Contents?: true

Size: 383 Bytes

Versions: 27

Compression:

Stored size: 383 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 plain: 'ok'
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-sequel-1.5.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.4.3 spec/dummy/app/controllers/home_controller.rb
doorkeeper-5.0.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.4.2 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.4.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-5.0.0.rc2 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.4.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-5.0.0.rc1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-mongodb-4.1.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.3.2 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.3.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-4.3.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-sequel-1.4.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-mongodb-4.0.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-mongodb-4.0.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-sequel-1.3.1 spec/dummy/app/controllers/home_controller.rb
doorkeeper-sequel-1.3.0 spec/dummy/app/controllers/home_controller.rb
doorkeeper-sequel-1.2.3 spec/dummy/app/controllers/home_controller.rb
doorkeeper-sequel-1.2.2 spec/dummy/app/controllers/home_controller.rb