Skip to content

Commit

Permalink
database option is no longer supported for sandbox generator
Browse files Browse the repository at this point in the history
Please use ENV['DB'] instead
  • Loading branch information
radar committed Feb 20, 2012
1 parent ac1b51e commit 5fccea4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions core/lib/generators/spree/sandbox/sandbox_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 5fccea4

Please sign in to comment.