Sha256: 01bbb27c111502a5d75dadc9dbd7825dffc9f324ac870072140e74f47675921d

Contents?: true

Size: 611 Bytes

Versions: 12

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

class Money
  class Railtie < Rails::Railtie
    initializer "shopify-money.setup_active_job_serializer" do
      ActiveSupport.on_load :active_job do
        require_relative "rails/job_argument_serializer"
        ActiveJob::Serializers.add_serializers ::Money::Rails::JobArgumentSerializer
      end
    end

    initializer "shopify-money.setup_locale_aware_parser" do
      ActiveSupport.on_load(:action_view) do
        Money::Parser::LocaleAware.decimal_separator_resolver =
          -> { ::I18n.translate("number.currency.format.separator") }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
shopify-money-3.0.0 lib/money/railtie.rb
shopify-money-2.2.2 lib/money/railtie.rb
shopify-money-2.2.1 lib/money/railtie.rb
shopify-money-2.2.0 lib/money/railtie.rb
shopify-money-2.0.0 lib/money/railtie.rb
shopify-money-1.3.0 lib/money/railtie.rb
shopify-money-1.2.1 lib/money/railtie.rb
shopify-money-1.2.0 lib/money/railtie.rb
shopify-money-1.1.2 lib/money/railtie.rb
shopify-money-1.1.1 lib/money/railtie.rb
shopify-money-1.1.0 lib/money/railtie.rb
shopify-money-1.0.2.pre lib/money/railtie.rb