Sha256: c2dbea76b85e5d302d5567ea2574f47b5a72e55abf4bbc04ba7f902d0601c5bf
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true require 'spree/core' module SolidusStripe class Engine < Rails::Engine include SolidusSupport::EngineExtensions isolate_namespace Spree engine_name 'solidus_stripe' # use rspec for tests config.generators do |g| g.test_framework :rspec end if SolidusSupport.backend_available? paths["app/views"] << "lib/views/backend" end if SolidusSupport.frontend_available? paths["app/views"] << "lib/views/frontend" end if SolidusSupport.api_available? paths["app/views"] << "lib/views/api" end initializer "spree.payment_method.add_stripe_credit_card", after: "spree.register.payment_methods" do |app| app.config.spree.payment_methods << Spree::PaymentMethod::StripeCreditCard end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_stripe-4.0.0 | lib/solidus_stripe/engine.rb |