Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Direct Known Subclasses

AffiliationsController, BookingsController, BusinessesController, CalendarsController, FreeSlotsController, ProviderPrivacyConfigurationsController, WelcomeController

Instance Method Summary (collapse)

Instance Method Details

- (Object) authorize_customer!



13
14
15
16
17
# File 'app/controllers/application_controller.rb', line 13

def authorize_customer!
  unless current_user.is_a? Customer
    render file: '/public/404.html', status: 404
  end
end

- (Object) authorize_provider!



6
7
8
9
10
# File 'app/controllers/application_controller.rb', line 6

def authorize_provider!
  unless current_user.is_a? Provider
    render file: '/public/404.html', status: 404
  end
end