Skip to content
Browse files

Include ActionView::Helpers::TextHelper to prevent missing 'pluralize…

…' in early Rails (~2.2.2)
  • Loading branch information...
1 parent c8a37e8 commit 47e95ed6636eaac11e79442d6a6e45862e3d9690 @kjvarga kjvarga committed Dec 12, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sitemap_generator/builder/sitemap_file.rb
View
3 lib/sitemap_generator/builder/sitemap_file.rb
@@ -15,6 +15,7 @@ module Builder
#
class SitemapFile
include ActionView::Helpers::NumberHelper
+ include ActionView::Helpers::TextHelper # Rails 2.2.2 fails with missing 'pluralize' otherwise
attr_accessor :sitemap_path, :public_path, :filesize, :link_count, :hostname
# <tt>public_path</tt> full path of the directory to write sitemaps in.
@@ -150,4 +151,4 @@ def bytesize(string)
end
end
end
-end
+end

0 comments on commit 47e95ed

Please sign in to comment.
Something went wrong with that request. Please try again.