module NdrError

Configuration for NdrError + convienence methods.

Contains the version of NdrError. Sourced by the gemspec.

Constants

VERSION

Public Class Methods

migration_class() click to toggle source

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.

# File lib/ndr_error.rb, line 100
def self.migration_class
  ActiveRecord::Migration[4.2]
end
table_name_prefix() click to toggle source

Help Rails find the table of any namespaced modules.

# File lib/ndr_error.rb, line 92
def self.table_name_prefix
  'error_'
end