lib/meta2/helpers/action_view_extension.rb in meta2-0.0.1 vs lib/meta2/helpers/action_view_extension.rb in meta2-0.0.2

- old
+ new

@@ -2,10 +2,17 @@ module Helpers module ActionViewExtension def meta_tags resolver = instance_variable_get "@#{Meta2.config.assign_name}" - resolver.detect.to_html(resolver.context).html_safe + html_source = resolver.detect.to_html(resolver.context) + unless Rails.env.production? + asist_message = resolver.options[:prefixes].map do |prefix| + '%s.%s' % [prefix, resolver.options[:template]] + end.join "\n" + html_source += "<!--Meta2 path hinting.\n#{asist_message} -->\n" + end + html_source.html_safe end end end end