Sha256: d82d66a07c72aa5d039fa0e48f903f554cc00654a727a80dd5e923f24f7acfdf

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true

module SolidusPaypalBraintree
  module Spree
    module UserDecorator
      def self.prepended(base)
        base.has_one :braintree_customer, class_name: 'SolidusPaypalBraintree::Customer', inverse_of: :user
      end

      ::Spree.user_class.prepend self
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_paypal_braintree-1.2.0 app/decorators/models/solidus_paypal_braintree/spree/user_decorator.rb
solidus_paypal_braintree-1.1.2 app/decorators/models/solidus_paypal_braintree/spree/user_decorator.rb
solidus_paypal_braintree-1.1.1 app/decorators/models/solidus_paypal_braintree/spree/user_decorator.rb
solidus_paypal_braintree-1.1.0 app/decorators/models/solidus_paypal_braintree/spree/user_decorator.rb
solidus_paypal_braintree-1.0.0 app/decorators/models/solidus_paypal_braintree/spree/user_decorator.rb