Exception: Formeze::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/formeze.rb

Instance Method Summary collapse

Constructor Details

#initialize(field, message) ⇒ ValidationError

Returns a new instance of ValidationError.



40
41
42
43
44
# File 'lib/formeze.rb', line 40

def initialize(field, message)
  @field = field

  super("#{field.label} #{message}")
end

Instance Method Details

#field_nameObject



46
47
48
# File 'lib/formeze.rb', line 46

def field_name
  @field.name
end