Skip to content

Instantly share code, notes, and snippets.

@jordan-brough
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordan-brough/461ddca18161ccc0dfc5 to your computer and use it in GitHub Desktop.
Save jordan-brough/461ddca18161ccc0dfc5 to your computer and use it in GitHub Desktop.
customized spree sandbox
#!/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