Ruby gem that lets you create draft versions of your database records.
whodunnit
column name to be configurable#save_draft
method to classes initialized with#has_drafts
#draft_creation
and #draft_update
are now deprecated and will be removed in v1.0.0. Use #save_draft
instead.Setting whodunnit
on a draft record is no longer done automatically in the controller. If your controllers have a current_user
method, you can still easily track who is responsible for changes by adding a controller filter:
class ApplicationController
before_action :set_draftsman_whodunnit
end
draft_destroy
to draft_destruction
serve_static_assets
deprecation warningBug Fix