Sha256: 070ad2317cfb3c3fa0a43f176fd778c7b02a5b496c6e4b3d032247b03c3aa299

Contents?: true

Size: 523 Bytes

Versions: 6

Compression:

Stored size: 523 Bytes

Contents

require "stripe_local/engine"
require "stripe_local/webhook"
require "stripe_local/instance_delegation"
require "stripe_local/association_methods"


module StripeLocal
  mattr_accessor :model_class

  def stripe_customer
    include InstanceDelegation
    include AssociationMethods

    has_one :customer,  inverse_of:  :model,
                        foreign_key: :model_id,
                        class_name:  'StripeLocal::Customer'

    StripeLocal::model_class = self
  end
end

ActiveRecord::Base.extend StripeLocal

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stripe_local-0.2.5 lib/stripe_local.rb
stripe_local-0.2.4 lib/stripe_local.rb
stripe_local-0.2.3 lib/stripe_local.rb
stripe_local-0.2.2 lib/stripe_local.rb
stripe_local-0.2.1 lib/stripe_local.rb
stripe_local-0.2.0 lib/stripe_local.rb