lib/better_html/railtie.rb in better_html-2.0.2 vs lib/better_html/railtie.rb in better_html-2.1.0
- old
+ new
@@ -4,8 +4,12 @@
module BetterHtml
class Railtie < Rails::Railtie
initializer "better_html.better_erb.initialization" do
BetterHtml::BetterErb.prepend!
+
+ ActiveSupport.on_load(:action_view) do
+ BetterHtml.config.annotate_rendered_view_with_filenames = ActionView::Base.annotate_rendered_view_with_filenames
+ end
end
end
end