diff --git a/.rubocop.yml b/.rubocop.yml index 3e0d86588b..98ae8d5683 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -154,6 +154,8 @@ Rails/OutputSafety: Rails/Output: Exclude: + # Allow patches to print warnings to console: + - 'config/initializers/monkeypatches/*.rb' # Allow migrations to print pt-osc comments to console: - 'db/migrate/*.rb' diff --git a/config/initializers/monkeypatches/deliver_after_commit.rb b/config/initializers/monkeypatches/deliver_after_commit.rb index b456370db6..80e8c59168 100644 --- a/config/initializers/monkeypatches/deliver_after_commit.rb +++ b/config/initializers/monkeypatches/deliver_after_commit.rb @@ -32,4 +32,4 @@ def rolledback!(*) AfterCommitEverywhere::Wrap.prepend(AfterCommitEverywhereWithLocale) else puts "WARNING: The monkeypatch #{__FILE__} was written for version 1.4.0 of the after_commit_everywhere gem, but you are running #{AfterCommitEverywhere::VERSION}. Please update or remove the monkeypatch." -end \ No newline at end of file +end