Skip to content

Commit

Permalink
Fix deprecate_constant INTERPOLATION_PATTERN
Browse files Browse the repository at this point in the history
deprecate_constant if Module responds to :deprecate_constant
  • Loading branch information
biinari committed Jun 12, 2020
1 parent f59c50f commit 87b0718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/interpolate/ruby.rb
Expand Up @@ -8,7 +8,7 @@ module I18n
/%<(\w+)>(.*?\d*\.?\d*[bBdiouxXeEfgGcps])/ # matches placeholders like "%<foo>.d"
].freeze
INTERPOLATION_PATTERN = Regexp.union(DEFAULT_INTERPOLATION_PATTERNS)
deprecate_constant :INTERPOLATION_PATTERN if method_defined? :INTERPOLATION_PATTERN
deprecate_constant :INTERPOLATION_PATTERN if respond_to? :deprecate_constant

class << self
# Return String or raises MissingInterpolationArgument exception.
Expand Down

0 comments on commit 87b0718

Please sign in to comment.