Method: EffectivePostsHelper#post_excerpt
- Defined in:
- app/helpers/effective_posts_helper.rb
#post_excerpt(post, label: 'Continue reading') ⇒ Object
All other options are passed to the link_to ‘Read more’
102 103 104 105 |
# File 'app/helpers/effective_posts_helper.rb', line 102 def post_excerpt(post, label: 'Continue reading') content = post.excerpt.presence || post.body.presence (content.to_s + readmore_link(post, label: label)).html_safe end |