Closed dcangulo closed 3 years ago
Using :base add a string Base to the error message.
:base
Base
validate :my_custom_validation def my_custom_validation errors.add(:base, 'MY MESSAGE') end
my_form.errors.full_messages
Should return:
["MY MESSAGE"]
Returns:
["Base MY MESSAGE"]
Reform version:
gem 'reform', '~> 2.3'
Complete Description of Issue
Using
:base
add a stringBase
to the error message.Steps to reproduce
Expected behavior
Should return:
Actual behavior
Returns:
System configuration
Reform version: