module NotFoundCatcher

Constants

VERSION

Public Class Methods

request_store() click to toggle source
# File lib/not_found_catcher.rb, line 16
def self.request_store
  @_req_st ||= (
  path = NotFoundCatcher.request_db.()
  FileUtils.touch path unless File.exists?(path)

  RequestStore.new(path)
  )
end
setup() { |self| ... } click to toggle source

Default way to setup TikalCore. Run “rails generate tikal_core_install” to create a fresh initializer with all configuration values.

# File lib/not_found_catcher.rb, line 60
def self.setup
  yield self
end

Public Instance Methods

base_admin_controller() click to toggle source

Controller da cui derivare il lato amministrativo dell'engine

# File lib/not_found_catcher.rb, line 27
mattr_accessor :base_admin_controller
base_catcher_controller() click to toggle source

Controller da cui derivare il lato catch_all delle chiamate

# File lib/not_found_catcher.rb, line 33
mattr_accessor :base_catcher_controller
dev_mode() click to toggle source

Se siamo in sviluppo e questa configurazione è a true, tutte le richieste non saranno locali altrimenti seguono lo standard della configurazione dell'applicativo

# File lib/not_found_catcher.rb, line 40
mattr_accessor :dev_mode
enabled() click to toggle source

Catcher attivo o meno, utile per quando si è in sviluppo

# File lib/not_found_catcher.rb, line 55
mattr_accessor :enabled
exceptions_to_catch() click to toggle source

Elenco degli errori da ascoltare

# File lib/not_found_catcher.rb, line 50
mattr_accessor :exceptions_to_catch
request_db() click to toggle source

Posizione del file yml in cui registrare tutte le richieste andate male e le possibili risoluzioni

# File lib/not_found_catcher.rb, line 12
mattr_accessor :request_db