mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
Call full_messages_for on model errors instead of on model itself
This commit is contained in:
parent
29f8f768f1
commit
e8041f73e6
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ module SimpleForm
|
||||||
end
|
end
|
||||||
|
|
||||||
def full_errors_on_association
|
def full_errors_on_association
|
||||||
reflection ? object.full_messages_for(reflection.name) : []
|
reflection ? object.errors.full_messages_for(reflection.name) : []
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_custom_error?
|
def has_custom_error?
|
||||||
|
|
Loading…
Reference in a new issue