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

Version Path
radiant-globalize2-extension-0.3.2 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.3.1 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.3.0 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.8 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.7 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.6 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.5 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.4 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.3 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.2 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.1 vendor/plugins/globalize2/lib/globalize.rb
radiant-globalize2-extension-0.2.0 vendor/plugins/globalize2/lib/globalize.rb
globalize2-0.2.1 lib/globalize.rb
globalize2-0.2.0 lib/globalize.rb