Sha256: acb89bb17bb21ea007c4c9946dba54d767ffb9ff2252710ac50ac6066621c92c
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 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.concat [:token] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_afterpay-0.2.0 | lib/solidus_afterpay/engine.rb |
solidus_afterpay-0.1.0 | lib/solidus_afterpay/engine.rb |