Permalink
Browse files

urls should be unique

  • Loading branch information...
1 parent 76d6638 commit 9e6a9e795fc9c2c18d47bfda0ea2b39c0e50e653 @svenfuchs committed Oct 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/cache/tags/store/active_record.rb
View
2 lib/rack/cache/tags/store/active_record.rb
@@ -18,7 +18,7 @@ def purge(tags)
end
def urls_by_tags(tags)
- taggings_by_tags(tags).map(&:url)
+ taggings_by_tags(tags).map(&:url).uniq
end
def taggings_by_tags(tags)

0 comments on commit 9e6a9e7

Please sign in to comment.