Skip to content

Commit

Permalink
Merge pull request #1884 from DFE-Digital/disable-better-html-for-rai…
Browse files Browse the repository at this point in the history
…ls-pages

Disable BetterHtml on Rails error pages
  • Loading branch information
peteryates authored Oct 20, 2021
2 parents 557d1a8 + d4720e1 commit f9bb890
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/initializers/better_html.rb
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
BetterHtml.config = BetterHtml::Config.new(YAML.safe_load(File.read(Rails.root.join(".better-html.yml"))))

BetterHtml.configure do |config|
config.template_exclusion_filter = Proc.new { |filename| !filename.start_with?(Rails.root.to_s) }
end

0 comments on commit f9bb890

Please sign in to comment.