Class: Lev::Configuration

Inherits:
Object show all
Defined in:
lib/lev.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



67
68
69
70
71
72
73
74
# File 'lib/lev.rb', line 67

def initialize
  @form_error_class = 'error'
  @security_transgression_error = Lev::SecurityTransgression
  @illegal_argument_error = Lev::IllegalArgument
  @raise_fatal_errors = false
  @job_class = ::ActiveJob::Base
  super
end

Instance Attribute Details

#form_error_classObject

This HTML class is added to form fields that caused errors



61
62
63
# File 'lib/lev.rb', line 61

def form_error_class
  @form_error_class
end

#illegal_argument_errorObject

Returns the value of attribute illegal_argument_error.



63
64
65
# File 'lib/lev.rb', line 63

def illegal_argument_error
  @illegal_argument_error
end

#job_classObject

Returns the value of attribute job_class.



65
66
67
# File 'lib/lev.rb', line 65

def job_class
  @job_class
end

#raise_fatal_errorsObject

Returns the value of attribute raise_fatal_errors.



64
65
66
# File 'lib/lev.rb', line 64

def raise_fatal_errors
  @raise_fatal_errors
end

#security_transgression_errorObject

Returns the value of attribute security_transgression_error.



62
63
64
# File 'lib/lev.rb', line 62

def security_transgression_error
  @security_transgression_error
end