jackc / edge

Edge provides graph functionality to ActiveRecord.
MIT License
90 stars 10 forks source link

Make `optional` option available #20

Closed y-yagi closed 7 years ago

y-yagi commented 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.

jackc commented 7 years ago

Thanks!

y-yagi commented 7 years ago

Thanks!

y-yagi commented 7 years ago

@jackc Hi, do you mind to release a new version ?

jackc commented 7 years ago

Done.

y-yagi commented 7 years ago

Thank you very much!