Sha256: c5d259d5e7ba57b46d8fa0549b3f04bb616732a734d8067179b513ac9b0159e3

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 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

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 spec/dummy/app/controllers/home_controller.rb