Sha256: 95533859594b5ede9937285e7929b34cf5ffaaba0a5497b449bb941eeff31408
Contents?: true
Size: 313 Bytes
Versions: 14
Compression:
Stored size: 313 Bytes
Contents
module Globalize autoload :ActiveRecord, 'globalize/active_record' class << self def fallbacks? I18n.respond_to?(:fallbacks) end def fallbacks(locale) fallbacks? ? I18n.fallbacks[locale] : [locale.to_sym] end end end ActiveRecord::Base.send(:include, Globalize::ActiveRecord)
Version data entries
14 entries across 14 versions & 2 rubygems