Sha256: b6e16bf5ff504e9a5309152cb3aebf2c0cc0b0fa75c77e5b4ee39fa4b6ff0f0a

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

require 'currency-locales/railtie' if defined?(::Rails) && defined?(::Rails::Railtie)

module BigCartel
  module CurrencyLocales
    class << self
      def insert
        locales = Dir[File.join(File.dirname(__FILE__), 'currency-locales', 'locales', '*.yml')]
        I18n.load_path.concat(locales)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bigcartel-currency-locales-2.2.0 lib/bigcartel-currency-locales.rb
bigcartel-currency-locales-2.0.0 lib/bigcartel-currency-locales.rb
bigcartel-currency-locales-1.6.0 lib/bigcartel-currency-locales.rb
bigcartel-currency-locales-1.5.0 lib/bigcartel-currency-locales.rb
bigcartel-currency-locales-1.4.0 lib/bigcartel-currency-locales.rb
bigcartel-currency-locales-1.3.1 lib/bigcartel-currency-locales.rb
bigcartel-currency-locales-1.3.0 lib/currency-locales.rb