A platform for community discussion. Free, open, simple.
DEV: Remove old deprecation warnings where constants already removed (#22140)
Ted Johanssond548231475d5
diff --git a/app/models/topic_link_click.rb b/app/models/topic_link_click.rbindex 751493dbd54..8dde67f47f0 100644--- a/app/models/topic_link_click.rb+++ b/app/models/topic_link_click.rb@@ -10,8 +10,6 @@ class TopicLinkClick < ActiveRecord::Basevalidates_presence_of :topic_link_idALLOWED_REDIRECT_HOSTNAMES = Set.new(%W[www.youtube.com youtu.be])- include ActiveSupport::Deprecation::DeprecatedConstantAccessor- deprecate_constant "WHITELISTED_REDIRECT_HOSTNAMES", "TopicLinkClick::ALLOWED_REDIRECT_HOSTNAMES"# Create a click from a URL and post_iddef self.create_from(args = {})diff --git a/app/models/translation_override.rb b/app/models/translation_override.rbindex 41334c3c24a..00786ba7f20 100644--- a/app/models/translation_override.rb+++ b/app/models/translation_override.rb@@ -39,9 +39,6 @@ class TranslationOverride < ActiveRecord::Base}include HasSanitizableFields- include ActiveSupport::Deprecation::DeprecatedConstantAccessor- deprecate_constant "CUSTOM_INTERPOLATION_KEYS_WHITELIST",- "TranslationOverride::ALLOWED_CUSTOM_INTERPOLATION_KEYS"validates_uniqueness_of :translation_key, scope: :localevalidates_presence_of :locale, :translation_key, :valuediff --git a/lib/upload_creator.rb b/lib/upload_creator.rbindex 61ee801420a..54615a1101f 100644--- a/lib/upload_creator.rb+++ b/lib/upload_creator.rb@@ -31,9 +31,6 @@ class UploadCreatoruse].each(&:freeze)- include ActiveSupport::Deprecation::DeprecatedConstantAccessor- deprecate_constant "WHITELISTED_SVG_ELEMENTS", "UploadCreator::ALLOWED_SVG_ELEMENTS"-# Available options# - type (string)# - origin (string)