DEV: Remove old deprecation warnings where constants already removed (#22140)
We renamed these constants 3 years ago. This PR just removes the old deprecation notices.
This commit is contained in:
parent
9174716737
commit
d548231475
|
@ -10,8 +10,6 @@ class TopicLinkClick < ActiveRecord::Base
|
|||
validates_presence_of :topic_link_id
|
||||
|
||||
ALLOWED_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_id
|
||||
def self.create_from(args = {})
|
||||
|
|
|
@ -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: :locale
|
||||
validates_presence_of :locale, :translation_key, :value
|
||||
|
|
|
@ -31,9 +31,6 @@ class UploadCreator
|
|||
use
|
||||
].each(&:freeze)
|
||||
|
||||
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
|
||||
deprecate_constant "WHITELISTED_SVG_ELEMENTS", "UploadCreator::ALLOWED_SVG_ELEMENTS"
|
||||
|
||||
# Available options
|
||||
# - type (string)
|
||||
# - origin (string)
|
||||
|
|
Loading…
Reference in New Issue