Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Load only required rails gem not the entire suite

Damian Legawiec8bf0f0a2e217
diff --git a/common_spree_dependencies.rb b/common_spree_dependencies.rb
index 2d2177c1c8..eea1dc3633 100644
--- a/common_spree_dependencies.rb
+++ b/common_spree_dependencies.rb
@@ -6,7 +6,12 @@ source 'https://rubygems.org'
gem 'sqlite3', '~> 1.4.0', platforms: [:ruby, :mingw, :mswin, :x64_mingw]
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
-gem 'rails', ENV.fetch('RAILS_VERSION', '~> 6.1.0'), require: false
+%w[
+ actionmailer actionpack actionview activejob activemodel activerecord
+ activestorage activesupport railties
+].each do |rails_gem|
+ gem rails_gem, ENV.fetch('RAILS_VERSION', '~> 6.1.0'), require: false
+end
platforms :jruby do
gem 'jruby-openssl'