Sha256: 6c87184343202b72881159482e70458fba095c70f4f3f2b36a4cc532375c5ce9

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

module Shoppe
  module Stripe
    class Railtie < Rails::Engine
      
      initializer "shoppe.stripe.initializer" do
        Shoppe::Stripe.setup
        
        ActiveSupport.on_load(:action_view) do
          require 'shoppe/stripe/view_helpers'
          ActionView::Base.send :include, Shoppe::Stripe::ViewHelpers
        end
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoppe-stripe-1.1.0 lib/shoppe/stripe/railtie.rb
shoppe-stripe-1.0.2 lib/shoppe/stripe/railtie.rb
shoppe-stripe-1.0.1 lib/shoppe/stripe/railtie.rb
shoppe-stripe-1.0.0 lib/shoppe/stripe/railtie.rb