Skip to content

Commit 047e6a7

Browse files
committed
Support solidus_auth_devise in the sandbox script
Don't add solidus_auth_devise to the sandbox app if it's the current extension. In 3017ed6 solidus_auth_devise was added directly to the gemfile in order to support solidus prior to v2.11. Since we don't need to support it anymore we can safely use the official `--with-authentication` option now.
1 parent 95c1966 commit 047e6a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • lib/solidus_dev_support/templates/extension/bin

lib/solidus_dev_support/templates/extension/bin/sandbox.tt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ fi
6565
cd ./sandbox
6666
cat <<RUBY >> Gemfile
6767
gem 'solidus', github: 'solidusio/solidus', branch: '$BRANCH'
68-
gem 'solidus_auth_devise', '>= 2.1.0'
6968
gem 'rails-i18n'
7069
gem 'solidus_i18n'
7170
@@ -86,7 +85,7 @@ unbundled bundle exec rails generate solidus:install \
8685
--auto-accept \
8786
--user_class=Spree::User \
8887
--enforce_available_locales=true \
89-
--with-authentication=false \
88+
--with-authentication=<%= file_name != 'solidus_auth_devise' %> \
9089
--payment-method=none \
9190
--frontend=${SOLIDUS_FRONTEND} \
9291
$@

0 commit comments

Comments
 (0)