Sha256: d751d097866635a0ad5cbe3b680e5d4ee9af313782540a28bd5d879439f362cc
Contents?: true
Size: 216 Bytes
Versions: 1
Compression:
Stored size: 216 Bytes
Contents
module PagesHelper def related_pages(taggable, limit = 3, &block) pages = Page.published.all(taggable.related_search_options(:tags, Page, :limit => limit)) return if pages.empty? yield(pages) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beef-pages-0.2.3 | app/helpers/pages_helper.rb |