module Globalize::Inflections
Public Instance Methods
instance_or_fallback(locale)
click to toggle source
# File lib/patches/active_support/inflections.rb, line 4 def instance_or_fallback(locale) I18n.respond_to?(:fallbacks) && I18n.fallbacks[locale].each do |k| return @__instance__[k] if @__instance__.key?(k) end instance(locale) end