Call full_messages_for on model errors instead of on model itself
This commit is contained in:
parent
29f8f768f1
commit
e8041f73e6
|
@ -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 New Issue