Sha256: de42b9035de7d7b5f47c2a03c6db303c00c0e1b274f68b4613911e05e657756a

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

module KktShoppe
  module Stripe
    class Engine < Rails::Engine
      
      initializer "kkt_shoppe.stripe.initializer" do
        KktShoppe::Stripe.setup
        ActiveSupport.on_load(:action_view) do
          require 'kkt_shoppe/stripe/view_helpers'
          ActionView::Base.send :include, KktShoppe::Stripe::ViewHelpers
        end
      end
      
      config.to_prepare do
        KktShoppe::Order.send :include, KktShoppe::Stripe::OrderExtensions
        KktShoppe::Payment.send :include, KktShoppe::Stripe::PaymentExtensions
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kkt_shoppe-stripe-2.0.0 lib/kkt_shoppe/stripe/engine.rb