Module: NdrError

Extended by:
Callbacks, Finder, Logging
Defined in:
lib/ndr_error.rb,
lib/ndr_error/engine.rb,
lib/ndr_error/finder.rb,
lib/ndr_error/fuzzing.rb,
lib/ndr_error/logging.rb,
lib/ndr_error/version.rb,
lib/ndr_error/recorder.rb,
lib/ndr_error/callbacks.rb,
app/models/ndr_error/log.rb,
lib/ndr_error/uuid_builder.rb,
app/models/ndr_error/fingerprint.rb,
app/helpers/ndr_error/errors_helper.rb,
lib/ndr_error/backtrace_compression.rb,
app/helpers/ndr_error/application_helper.rb,
lib/ndr_error/middleware/public_exceptions.rb,
app/controllers/ndr_error/errors_controller.rb,
app/controllers/ndr_error/application_controller.rb

Overview

Contains the version of NdrError. Sourced by the gemspec.

Defined Under Namespace

Modules: ApplicationHelper, BacktraceCompression, Callbacks, ErrorsHelper, Finder, Fuzzing, Logging, Middleware, UuidBuilder Classes: ApplicationController, Engine, ErrorsController, Fingerprint, Log, Recorder

Constant Summary collapse

VERSION =
'2.4.1'

Constants included from Logging

Logging::ANCILLARY_ATTRS_WHITELIST

Class Method Summary collapse

Methods included from Callbacks

after_log, extended, run_after_log_callbacks

Methods included from Finder

find, paginate, search

Methods included from Logging

log, monitor

Class Method Details

.migration_classObject

Rails 5 uses versioned migrations (required as of 5.1). This helper method returns an appropriate migration superclass for the Rails version of the host application. Note that the 4.2 compatability layer is targetted since all the bundled migrations were written prior to Rails 5.



100
101
102
# File 'lib/ndr_error.rb', line 100

def self.migration_class
  ActiveRecord::Migration[4.2]
end

.table_name_prefixObject

Help Rails find the table of any namespaced modules.



92
93
94
# File 'lib/ndr_error.rb', line 92

def self.table_name_prefix
  'error_'
end