Sha256: d688e98791e431e38ed3146a4139d21e4f0ffc51f6c9dfd6009a4d55bf0e1816

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

module Inflections
  class Railtie < Rails::Railtie
    begin
      config.to_prepare do
        require "inflections/#{Rails.configuration.i18n.default_locale}"
      end
    rescue LoadError => e
      config.to_prepare do
        warn "Inflections currently does not support #{Rails.configuration.i18n.default_locale}. Defaulting to English (en)."
        require 'inflections/en'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inflections-3.2.9.20121206 lib/inflections/railtie.rb
inflections-3.2.9.20121201 lib/inflections/railtie.rb
inflections-3.2.8 lib/inflections/railtie.rb