A platform for community discussion. Free, open, simple.
DEV: stop logging warning when overriding open scope
Sam12f5889c85a1
diff --git a/config/initializers/100-logster.rb b/config/initializers/100-logster.rbindex 833e1c60b33..6e607da65ea 100644--- a/config/initializers/100-logster.rb+++ b/config/initializers/100-logster.rb@@ -50,7 +50,15 @@ if Rails.env.production?# we handle this cleanly in the message bus middleware# no point logging to logster- /RateLimiter::LimitExceeded.*/m+ /RateLimiter::LimitExceeded.*/m,++ # see https://github.com/rails/rails/issues/34599+ # Poll defines an enum with the value `open` ActiveRecord then attempts+ # AR then warns cause #open is being redefined, it is already defined+ # privately in Kernel per: http://ruby-doc.org/core-2.5.3/Kernel.html#method-i-open+ # Once the rails issue is fixed we can stop this error suppression and stop defining+ # scopes for the enums+ /^Creating scope :open\. Overwriting existing method Poll\.open\./,]end