Closed y-yagi closed 7 years ago
In Rails 5.0, belongs_to will now trigger a validation error by default if the association is not present. But the root element does not have a parent. Therefore, I want to be able to pass optional option to avoid validation error.
belongs_to
optional
Thanks!
@jackc Hi, do you mind to release a new version ?
Done.
Thank you very much!
In Rails 5.0,
belongs_to
will now trigger a validation error by default if the association is not present.But the root element does not have a parent. Therefore, I want to be able to pass
optional
option to avoid validation error.