Class: Lev::Configuration

Inherits:
Object
  • 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.



54
55
56
57
58
# File 'lib/lev.rb', line 54

def initialize      
  @form_error_class = 'error'
  @security_transgression_error = Lev::SecurityTransgression
  super
end

Instance Attribute Details

#form_error_classObject

This HTML class is added to form fields that caused errors



51
52
53
# File 'lib/lev.rb', line 51

def form_error_class
  @form_error_class
end

#security_transgression_errorObject

Returns the value of attribute security_transgression_error.



52
53
54
# File 'lib/lev.rb', line 52

def security_transgression_error
  @security_transgression_error
end