Class: WelcomeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/welcome_controller.rb

Instance Method Summary (collapse)

Methods inherited from ApplicationController

#authorize_customer!, #authorize_provider!

Instance Method Details

- (Object) index



2
3
4
5
6
7
8
9
10
# File 'app/controllers/welcome_controller.rb', line 2

def index
  if current_user
    if current_user.is_a? Provider
      render 'provider_dash'
    else
      render 'customer_dash'
    end
  end
end