Sha256: 16628915773b25462ddbadb33e49ae9c99e6ceb72441e105846aa0430184ee67
Contents?: true
Size: 382 Bytes
Versions: 7
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 plain: 'ok' end end
Version data entries
7 entries across 7 versions & 3 rubygems