stefankroes / ancestry

Organise ActiveRecord model into a tree structure
MIT License
3.72k stars 459 forks source link

only run validation on ancestry column #551

Closed kbrock closed 3 years ago

kbrock commented 3 years ago

before: run all prevalidation call backs run all validations check that ancestry did not thow an exception

after: run only ancestry validations

also consolidates 2 different ancestry checks