Module: Instructions::ErrorMessage
- Included in:
- ErrorMessageTag
- Defined in:
- lib/instructions/error_message.rb
Instance Method Summary collapse
Instance Method Details
#compose_error_message(method, model) ⇒ Object
3 4 5 6 7 |
# File 'lib/instructions/error_message.rb', line 3 def (method, model) errors = model.errors[method] return Configuration..call errors if errors.kind_of? Array return errors if errors.kind_of? String end |