Encourage use of include keyword

This commit is contained in:
Mike 2011-10-08 03:29:58 +03:00
parent 6c10302cd3
commit 2d3c0839e9
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ Hate seeing that `h.` proxy all over? Willing to mix a bazillion methods into yo
```ruby
class ArticleDecorator < ApplicationDecorator
decorates :article
lazy_helpers
include Draper::LazyHelpers
def published_at
date = content_tag(:span, model.published_at.strftime("%A, %B %e").squeeze(" "), :class => 'date')