Skip to content

Commit

Permalink
Merge pull request #531 from Fatsoma/deprecate_constant_interpolation…
Browse files Browse the repository at this point in the history
…_pattern

Fix deprecate_constant INTERPOLATION_PATTERN
  • Loading branch information
radar committed Jun 24, 2020
2 parents f59c50f + 87b0718 commit 4e1a134
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 4e1a134

Please sign in to comment.