Draft#publish! should not skip model validations
Closed this issue · 4 comments
Looooong commented
Or at least publish!
should receive arguments that will be passed to save
.
I have to validate that the record has to meet certain criteria when it is published but not when it is drafted.
Looooong commented
I will make a PR for this by adding save_options
with default validate: false
to draftsman_options
of the model class. How should I test this?
jmfederico commented
Thanks for the PR! Makes sense.
Will review and commit.
jmfederico commented
Merged.