Sha256: f439657c8debd30c3213345dc055eb6ff4e10ab0b9761d9b92285b2703cd2a91

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

require 'solidus_core'
require 'solidus_support'

module SolidusAfterpay
  class Engine < Rails::Engine
    include SolidusSupport::EngineExtensions

    isolate_namespace ::Spree

    engine_name 'solidus_afterpay'

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

    initializer "spree.payment_methods.register_afterpay_payment_method",
      after: "spree.register.payment_methods" do |app|
      app.config.spree.payment_methods << "SolidusAfterpay::PaymentMethod"
      Spree::PermittedAttributes.source_attributes.push :token
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_afterpay-0.3.0 lib/solidus_afterpay/engine.rb