Sha256: 0447fffb3b903d70317405320d8d60192d3b0c26650446a9f5edd20284134bc6

Contents?: true

Size: 295 Bytes

Versions: 4

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

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

      ::Spree.user_class.prepend self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_braintree-3.1.0 app/decorators/models/solidus_braintree/spree/user_decorator.rb
solidus_braintree-3.0.1 app/decorators/models/solidus_braintree/spree/user_decorator.rb
solidus_braintree-3.0.0 app/decorators/models/solidus_braintree/spree/user_decorator.rb
solidus_braintree-2.0.0 app/decorators/models/solidus_braintree/spree/user_decorator.rb