Last active
August 29, 2015 14:05
-
-
Save jordan-brough/461ddca18161ccc0dfc5 to your computer and use it in GitHub Desktop.
customized spree sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
cd ~/repos/spree | |
bundle install --quiet 1> /dev/null || bundle update --quiet | |
bundle exec rake sandbox | |
cat <<RUBY > sandbox/config/initializers/huzzah.rb | |
Rails.application.config.to_prepare do | |
Spree::ReturnItem::DefaultEligibilityValidator.permitted_eligibility_validators = [ | |
Spree::ReturnItem::EligibilityValidator::TimeSincePurchase, | |
] | |
end | |
RUBY | |
say 'spree sandbox is ready' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment