Sha256: 8c9cab2e0a4e55136ebbd670472afb88d2a085fdc5589842aa19adca054a72f8
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true module SolidusBraintree module Spree module StoreDecorator def self.prepended(base) base.has_one :braintree_configuration, class_name: "SolidusBraintree::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
4 entries across 4 versions & 1 rubygems