class Forme::ErrorHandler::Set

  1. lib/forme/transformers/error_handler.rb
Superclass: ErrorHandler

Methods

Public Instance

  1. call

Public Instance methods

call (tag, input)
[show source]
   # File lib/forme/transformers/error_handler.rb
37 def call(tag, input)
38   return super unless last_input = input.opts[:last_input]
39 
40   last_input.opts[:error] = input.opts[:error]
41   last_input.opts[:error_attr] = input.opts[:error_attr] if input.opts[:error_attr]
42   last_input.opts[:error_handler] = :default
43 
44   tag
45 end