From 5fccea4b861653883577f315ad84f65443a29d97 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Mon, 20 Feb 2012 09:37:06 -0500 Subject: [PATCH] database option is no longer supported for sandbox generator Please use ENV['DB'] instead --- Rakefile | 2 +- core/lib/generators/spree/sandbox/sandbox_generator.rb | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index eb29c151c6b..51deb04decb 100644 --- a/Rakefile +++ b/Rakefile @@ -108,7 +108,7 @@ desc "Creates a sandbox application for simulating the Spree code in a deployed task :sandbox do require 'spree_core' - Spree::SandboxGenerator.start ["--lib_name=spree", "--database=#{ENV['DB_NAME']}"] + Spree::SandboxGenerator.start ["--lib_name=spree"] Spree::InstallGenerator.start ["--auto-accept"] cmd = "bundle exec rake assets:precompile:nondigest"; puts cmd; system cmd diff --git a/core/lib/generators/spree/sandbox/sandbox_generator.rb b/core/lib/generators/spree/sandbox/sandbox_generator.rb index 279a341dcb6..4f8d35fbb5f 100644 --- a/core/lib/generators/spree/sandbox/sandbox_generator.rb +++ b/core/lib/generators/spree/sandbox/sandbox_generator.rb @@ -4,8 +4,6 @@ module Spree class SandboxGenerator < Spree::DummyGenerator desc "Creates blank Rails application, installs Spree and all sample data" - class_option :database, :default => '' - def self.source_paths paths = self.superclass.source_paths paths.unshift File.expand_path('../templates', __FILE__)