Sha256: c3477d517f07a78ea58b7efc94cbb67f456c496de6e0ac8d0ea2569a11533586
Contents?: true
Size: 505 Bytes
Versions: 5
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module SolidusPaypalBraintree module Spree module StoreDecorator def self.prepended(base) base.has_one :braintree_configuration, class_name: "SolidusPaypalBraintree::Configuration", dependent: :destroy base.before_create :build_default_configuration end private def build_default_configuration build_braintree_configuration unless braintree_configuration end ::Spree::Store.prepend self end end end
Version data entries
5 entries across 5 versions & 1 rubygems