1
0
Fork 0
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:
Michaël Van Damme 2014-09-21 03:51:37 +02:00
parent 29f8f768f1
commit e8041f73e6

View file

@ -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?