Sha256: 25154a14ae1522306b19b29b625b8900132c0fbfe58b5d4f1328ab22e7cc804b

Contents?: true

Size: 164 Bytes

Versions: 3

Compression:

Stored size: 164 Bytes

Contents

class WelcomeController < ApplicationController
  def index
    if logged_in?
      render json: current_user
    else
      render text: 'hello'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dailycred-0.3.1 dummy-preauth/app/controllers/welcome_controller.rb
dailycred-0.3.0 dummy-preauth/app/controllers/welcome_controller.rb
dailycred-0.2.0 dummy-preauth/app/controllers/welcome_controller.rb