Class: Lev::Configuration
Instance Attribute Summary collapse
-
#create_status_proc ⇒ Object
Returns the value of attribute create_status_proc.
-
#find_status_proc ⇒ Object
Returns the value of attribute find_status_proc.
-
#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.
-
#job_class ⇒ Object
Returns the value of attribute job_class.
-
#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.
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/lev.rb', line 78 def initialize @form_error_class = 'error' @security_transgression_error = Lev::SecurityTransgression @illegal_argument_error = Lev::IllegalArgument @raise_fatal_errors = false @create_status_proc = ->(*) { NullStatus.new } @find_status_proc = ->(*) { NullStatus.new } @job_class = ::ActiveJob::Base super end |
Instance Attribute Details
#create_status_proc ⇒ Object
Returns the value of attribute create_status_proc.
74 75 76 |
# File 'lib/lev.rb', line 74 def create_status_proc @create_status_proc end |
#find_status_proc ⇒ Object
Returns the value of attribute find_status_proc.
75 76 77 |
# File 'lib/lev.rb', line 75 def find_status_proc @find_status_proc end |
#form_error_class ⇒ Object
This HTML class is added to form fields that caused errors
70 71 72 |
# File 'lib/lev.rb', line 70 def form_error_class @form_error_class end |
#illegal_argument_error ⇒ Object
Returns the value of attribute illegal_argument_error.
72 73 74 |
# File 'lib/lev.rb', line 72 def illegal_argument_error @illegal_argument_error end |
#job_class ⇒ Object
Returns the value of attribute job_class.
76 77 78 |
# File 'lib/lev.rb', line 76 def job_class @job_class end |
#raise_fatal_errors ⇒ Object
Returns the value of attribute raise_fatal_errors.
73 74 75 |
# File 'lib/lev.rb', line 73 def raise_fatal_errors @raise_fatal_errors end |
#security_transgression_error ⇒ Object
Returns the value of attribute security_transgression_error.
71 72 73 |
# File 'lib/lev.rb', line 71 def security_transgression_error @security_transgression_error end |