Closed zolzaya closed 3 years ago
According to documentation I added following code to initializers/spree.rb
initializers/spree.rb
SpreeMultiVendor::Config[:vendorized_models] = %w[product variant]
But it's not working. I see orders, products, vendor settings and configs.
Here is the my environments:
4 ruby '3.0.0' 5 6 # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' 7 gem 'rails', '~> 6.1.3' 8 # Use postgresql as the database for Active Record 9 gem 'pg', '~> 1.1' 10 # Use Puma as the app server 11 gem 'puma', '~> 5.0' 12 # Use SCSS for stylesheets 13 gem 'sass-rails', '>= 6' 14 # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker 15 gem 'webpacker', '~> 5.0' 16 # Turbolinks makes navigating your web application faster. Read more: https://g ithub.com/turbolinks/turbolinks 17 gem 'turbolinks', '~> 5' 18 # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 19 gem 'jbuilder', '~> 2.7' 20 # Use Redis adapter to run Action Cable in production 21 # gem 'redis', '~> 4.0' 22 # Use Active Model has_secure_password 23 # gem 'bcrypt', '~> 3.1.7' 24 25 # Use Active Storage variant 26 # gem 'image_processing', '~> 1.2' 27 28 gem 'spree', '~> 4.2.0' 29 gem 'spree_auth_devise', '~> 4.3' 30 gem 'spree_gateway', '~> 3.9' 31 gem 'spree_i18n', '~> 5.0' 32 33 gem 'spree_analytics_trackers', '~> 2.0' 34 gem 'spree_social', github: 'spree-contrib/spree_social' 35 gem 'spree_multi_vendor'
According to documentation I added following code to
initializers/spree.rb
SpreeMultiVendor::Config[:vendorized_models] = %w[product variant]
But it's not working. I see orders, products, vendor settings and configs.
Here is the my environments: