Skip to content

Commit

Permalink
Merge initialize to configure better_html
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Mar 14, 2024
1 parent b0fc796 commit 694d3ed
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/better_html/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ module BetterHtml
class Railtie < Rails::Railtie
initializer "better_html.better_erb.initialization" do
BetterHtml::BetterErb.prepend!
end

config.after_initialize do
ActiveSupport.on_load(:action_view) do
BetterHtml.config.annotate_rendered_view_with_filenames = ActionView::Base.annotate_rendered_view_with_filenames
end
Expand Down

0 comments on commit 694d3ed

Please sign in to comment.