Class: ApplicationController

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

Direct Known Subclasses

AffiliationsController, BusinessesController, CalendarsController, FreeSlotsController, ProviderPrivacyConfigurationsController, WelcomeController

Instance Method Summary (collapse)

Instance Method Details

- (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