diff --git a/README.md b/README.md index fb510d6..21680e3 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ or if you prefer storing the config elsewhere, in a yml file for example: ```ruby # config/initializers/better_html.rb -BetterHtml.config = BetterHtml::Config.new(YAML.load(File.read('/path/to/.better-html.yml'))) +BetterHtml.config = BetterHtml::Config.new(YAML.load_file(file_path, permitted_classes: [Regexp])) ``` Available configuration options are: