Sha256: 2dbf0062685987fafe4323c8f53cc0e4b2eb414a1fe46aebd3402706482b90c4

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

Stored size: 696 Bytes

Contents

require 'rails'
require 'rails/generators'
require 'active_support/dependencies'
require 'errational/errationality'
require 'errational/errationalify'
require 'generators/errational/install_generator'

module Errational

  def self.setup
    yield self
  end

  mattr_accessor :namespace
  mattr_accessor :error_response_code
  mattr_accessor :error_partial
  mattr_accessor :logger

  def self.error_base_name
    "#{Errational.namespace}Error"
  end

  def self.exception_base_name
    "#{Errational.namespace}Exception"
  end

  def self.error_base
    Kernel.const_get(Errational.error_base_name)
  end

  def self.exception_base
    Kernel.const_get(Errational.exception_base_name)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
errational-0.12.04 lib/errational.rb
errational-0.9.09 lib/errational.rb
errational-0.8.16 lib/errational.rb
errational-0.7.1 lib/errational.rb