Skip to content

Commit

Permalink
Update docs to explain helper
Browse files Browse the repository at this point in the history
  • Loading branch information
blaknite committed May 18, 2016
1 parent d79ce0a commit f95c004
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@ class CommentPresenter < Blush::Presenter
end
end

# explicitly call the presenter methods
@comment.presenter.content

# delegate to the model if method doesn't exist on presenter
@comment.present(:content)
```

0 comments on commit f95c004

Please sign in to comment.