beef-pages 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -1,2 +1,7 @@
1
1
  module PagesHelper
2
+ def related_pages(taggable, limit = 3, &block)
3
+ pages = Page.published.all(taggable.related_search_options(:tags, Page, :limit => limit))
4
+ return if pages.empty?
5
+ yield(pages)
6
+ end
2
7
  end
data/pages.gemspec CHANGED
@@ -1,15 +1,12 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
3
  Gem::Specification.new do |s|
7
4
  s.name = %q{pages}
8
- s.version = "0.2.2"
5
+ s.version = "0.2.3"
9
6
 
10
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
8
  s.authors = ["Steve England"]
12
- s.date = %q{2009-08-28}
9
+ s.date = %q{2009-09-01}
13
10
  s.email = %q{steve@wearebeef.co.uk}
14
11
  s.extra_rdoc_files = [
15
12
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-28 00:00:00 -07:00
12
+ date: 2009-09-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15