Class: Arkaan::Utils::Controllers::Checked

Inherits:
Base
  • Object
show all
Defined in:
lib/arkaan/utils/controllers/checked.rb

Overview

Base controller to handle the standard error when accessing the API.

Author:

Instance Method Summary collapse

Methods inherited from Base

#add_body_to_params, #before_checks, #check_application, #check_either_presence, #check_presence, #check_session, #custom_error, declare_premium_route, declare_route, declare_route_with, declare_status_route, #handle_arkaan_exception, load_errors_from, #model_error, #parse_current_route, #select_params

Instance Method Details

#route_is_diagnostic?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'lib/arkaan/utils/controllers/checked.rb', line 13

def route_is_diagnostic?
  service = Arkaan::Utils::MicroService.instance.service
  diagnostic = "#{service.path}#{service.diagnostic}"
  request.path_info == diagnostic
end