Class: Instructions::ErrorMessageTag
- Inherits:
-
Object
- Object
- Instructions::ErrorMessageTag
show all
- Extended by:
- ErrorMessage
- Includes:
- Tag
- Defined in:
- lib/instructions/error_message_tag.rb
Instance Attribute Summary
Attributes included from Tag
#formatters
Class Method Summary
collapse
Instance Method Summary
collapse
compose_error_message
Methods included from Tag
#attribute_name, #attribute_name_formatter, #close_tag, #field_identifier, #formatted_attribute_name, #formatted_css_class, #formatted_instructions, #identifier, #initialize, #instructions, #instructions_formatter, #open_tag, #render
Methods included from Abstract
included
Class Method Details
.build(method, model, model_name, formatters = {}, *options) ⇒ Object
8
9
10
11
|
# File 'lib/instructions/error_message_tag.rb', line 8
def self.build(method, model, model_name, formatters={}, *options)
error_message = compose_error_message(method, model)
new method, model, model_name, error_message, formatters, *options
end
|
Instance Method Details
#css_class ⇒ Object
17
18
19
|
# File 'lib/instructions/error_message_tag.rb', line 17
def css_class
"instructions invalid"
end
|
#descriptor ⇒ Object
13
14
15
|
# File 'lib/instructions/error_message_tag.rb', line 13
def descriptor
"error_message"
end
|