Followup of #18322
Mirror the documented new behavior of including details, when performing errors test.
This commit is contained in:
parent
8ef4585303
commit
4dd7a9d4a5
@ -11,7 +11,7 @@ def initialize
|
||||
attr_reader :errors
|
||||
|
||||
def validate!
|
||||
errors.add(:name, "cannot be nil") if name == nil
|
||||
errors.add(:name, :blank, message: "cannot be nil") if name == nil
|
||||
end
|
||||
|
||||
def read_attribute_for_validation(attr)
|
||||
|
Loading…
Reference in New Issue
Block a user