copasetickid/draftsman

Draft#publish! should not skip model validations

Closed this issue · 4 comments

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.

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?

I have made a PR at #76 . Hope that will help.

Thanks for the PR! Makes sense.

Will review and commit.

Merged.