Flowdock
method

interpolate_with_deprecated_syntax

Importance_0
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: I18n::Backend::Simple

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.2) is shown here.

interpolate_with_deprecated_syntax(locale, string, values = {}) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/i18n_interpolation_deprecation.rb, line 12
        def interpolate_with_deprecated_syntax(locale, string, values = {})
          return string unless string.is_a?(String)

          string = string.gsub(/%d|%s/) do |s|
            instead = DEPRECATED_INTERPOLATORS[s]
            ActiveSupport::Deprecation.warn "using #{s} in messages is deprecated; use #{instead} instead."
            instead
          end

          interpolate_without_deprecated_syntax(locale, string, values)
        end
Register or log in to add new notes.