lib/nanoc/helpers/xml_sitemap.rb in nanoc-3.3.2 vs lib/nanoc/helpers/xml_sitemap.rb in nanoc-3.3.3
- old
+ new
@@ -29,10 +29,10 @@
# if the site is at "http://example.com/", the `base_url` would be
# "http://example.com".
#
# @example Excluding binary items from the sitemap
#
- # <%= xml_sitemap :items => @items.reject{ |i| i[:is_hidden] || i[:binary] } %>
+ # <%= xml_sitemap :items => @items.reject{ |i| i[:is_hidden] || i.binary? } %>
#
# @option params [Array] :items A list of items to include in the sitemap
#
# @return [String] The XML sitemap
def xml_sitemap(params={})