Skip to content

Commit

Permalink
Update documentation generator to include new Draftsman.whodunnit_fie…
Browse files Browse the repository at this point in the history
…ld setting [ci skip]
  • Loading branch information
Chris Peters committed Nov 13, 2016
1 parent 340e632 commit 43c95ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ Add `has_drafts` to the models you want to have drafts on.
Draftsman provides a helper extension that acts similarly to the controller
mixin it provides for Rails applications.

It will set `Draftsman.whodunnit` to whatever is returned by a method named
`user_for_paper_trail`, which you can define inside your Sinatra Application.
(By default, it attempts to invoke a method named `current_user`.)
It will set `Draftsman::Draft#whodunnit` to whatever is returned by a method
named `user_for_paper_trail`, which you can define inside your Sinatra
application. (By default, it attempts to invoke a method named `current_user`.)

If you're using the modular [`Sinatra::Base`][8] style of application, you will
need to register the extension:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# Field which records when a draft was created.
# Draftsman.timestamp_field = :created_at

# Field which records who last recorded the draft.
# Draftsman.whodunnit_field = :whodunnit

0 comments on commit 43c95ec

Please sign in to comment.