Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickwerk-style patches #162

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'bundler/gem_tasks'
require 'solidus_dev_support/rake_tasks'
SolidusDevSupport::RakeTasks.install
SolidusDevSupport::RakeTasks.install(user_class: "Spree::User")

task :default do
require 'bundler'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module SolidusBraintree
module SpreeStoreDecorator
module SpreeStorePatch
def self.prepended(base)
base.has_one :braintree_configuration, class_name: "SolidusBraintree::Configuration", dependent: :destroy
base.before_create :build_default_configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module SolidusBraintree
module SpreeUserDecorator
module SpreeUserPatch
def self.prepended(base)
base.has_one :braintree_customer, class_name: 'SolidusBraintree::Customer', inverse_of: :user
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module SolidusBraintree
module AdminPaymentsControllerDecorator
module AdminPaymentsControllerPatch
def self.prepended(base)
base.helper ::SolidusBraintree::BraintreeAdminHelper
end
Expand Down
2 changes: 1 addition & 1 deletion solidus_braintree.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'solidus_api', ['>= 3.4.0.dev', '< 5']
spec.add_dependency 'solidus_backend', ['>= 3.4.0.dev', '< 5']
spec.add_dependency 'solidus_core', ['>= 3.4.0.dev', '< 5']
spec.add_dependency 'solidus_support', ['>= 0.8.1', '< 1']
spec.add_dependency 'solidus_support', ['>= 0.13.1', '< 1']

spec.add_development_dependency 'rails-controller-testing'
spec.add_development_dependency 'solidus_dev_support', '~> 2.5'
Expand Down