Skip to content

Commit

Permalink
Make SolidusAdmin opt-in while installing solidus
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Sep 29, 2023
1 parent 1288f9c commit a5372d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ unbundled bin/rails db:drop db:create

echo "~~~> Running the solidus:install generator"
export SOLIDUS_ADMIN_LOOKBOOK=true
unbundled bin/rails generate solidus:install --auto-accept $@
unbundled bin/rails generate solidus:install --admin-preview --auto-accept $@

echo "
🚀 This app is intended for test purposes. If you're interested in running
Expand Down
2 changes: 1 addition & 1 deletion core/lib/generators/solidus/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InstallGenerator < Rails::Generators::AppBase
class_option :seed, type: :boolean, default: true, banner: 'Load seed data (migrations must be run)'
class_option :sample, type: :boolean, default: true, banner: 'Load sample data (migrations and seeds must be run)'
class_option :active_storage, type: :boolean, default: true, banner: 'Install ActiveStorage as image attachments handler for products and taxons'
class_option :admin_preview, type: :boolean, default: true, desc: 'Install the admin preview'
class_option :admin_preview, type: :boolean, default: false, desc: 'Install the admin preview'
class_option :auto_accept, type: :boolean
class_option :user_class, type: :string
class_option :admin_email, type: :string
Expand Down

0 comments on commit a5372d3

Please sign in to comment.