Class: Lev::Configuration
Instance Attribute Summary collapse
-
#active_job_class ⇒ Object
Returns the value of attribute active_job_class.
-
#form_error_class ⇒ Object
This HTML class is added to form fields that caused errors.
-
#illegal_argument_error ⇒ Object
Returns the value of attribute illegal_argument_error.
-
#raise_fatal_errors ⇒ Object
Returns the value of attribute raise_fatal_errors.
-
#security_transgression_error ⇒ Object
Returns the value of attribute security_transgression_error.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
60 61 62 63 64 65 66 67 |
# File 'lib/lev.rb', line 60 def initialize @form_error_class = 'error' @security_transgression_error = Lev::SecurityTransgression @illegal_argument_error = Lev::IllegalArgument @raise_fatal_errors = false @active_job_class = defined?(ActiveJob) ? ActiveJob::Base : nil super end |
Instance Attribute Details
#active_job_class ⇒ Object
Returns the value of attribute active_job_class.
58 59 60 |
# File 'lib/lev.rb', line 58 def active_job_class @active_job_class end |
#form_error_class ⇒ Object
This HTML class is added to form fields that caused errors
54 55 56 |
# File 'lib/lev.rb', line 54 def form_error_class @form_error_class end |
#illegal_argument_error ⇒ Object
Returns the value of attribute illegal_argument_error.
56 57 58 |
# File 'lib/lev.rb', line 56 def illegal_argument_error @illegal_argument_error end |
#raise_fatal_errors ⇒ Object
Returns the value of attribute raise_fatal_errors.
57 58 59 |
# File 'lib/lev.rb', line 57 def raise_fatal_errors @raise_fatal_errors end |
#security_transgression_error ⇒ Object
Returns the value of attribute security_transgression_error.
55 56 57 |
# File 'lib/lev.rb', line 55 def security_transgression_error @security_transgression_error end |