lib/webgen/sourcehandler/base.rb in gettalong-webgen-0.5.5.20081012 vs lib/webgen/sourcehandler/base.rb in gettalong-webgen-0.5.6.20081020
- old
+ new
@@ -1,5 +1,6 @@
+require 'facets/symbol/to_proc'
require 'webgen/websiteaccess'
require 'webgen/loggable'
require 'webgen/page'
module Webgen::SourceHandler
@@ -161,10 +162,10 @@
false
else
Webgen::WebsiteAccess.website.config['sourcehandler.default_lang_in_output_path'] ||
Webgen::WebsiteAccess.website.config['website.lang'] != path.meta_info['lang']
end
- if OutputPathHelpers.public_instance_methods(false).include?(method)
+ if OutputPathHelpers.public_instance_methods(false).map(&:to_s).include?(method)
name = send(method, parent, path, use_lang_part)
name += '/' if path.path =~ /\/$/ && name !~ /\/$/
if (node = node_exists?(parent, path, name)) && node.lang == path.meta_info['lang']
name = node.path
elsif node