From d57f3ded741931e5a6c2c55e83d22a75b655a8e6 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 21 Jan 2016 23:54:29 +0100 Subject: [PATCH] Removes devise initializer from dummy generator The dummy app generator adds a devise initializer that's disabled in most of the time. The official solidus_auth_devise gem has it's own devise initializer, that never gets generated in the dummy app, because the generator skips existing devise initializers (what's good, to prevent overwriting in the real host app). --- core/lib/generators/spree/dummy/dummy_generator.rb | 1 - .../generators/spree/dummy/templates/initializers/devise.rb | 3 --- 2 files changed, 4 deletions(-) delete mode 100644 core/lib/generators/spree/dummy/templates/initializers/devise.rb diff --git a/core/lib/generators/spree/dummy/dummy_generator.rb b/core/lib/generators/spree/dummy/dummy_generator.rb index 58a3c6f00b6..dd4fde82149 100644 --- a/core/lib/generators/spree/dummy/dummy_generator.rb +++ b/core/lib/generators/spree/dummy/dummy_generator.rb @@ -48,7 +48,6 @@ def test_dummy_config template "rails/test.rb", "#{dummy_path}/config/environments/test.rb", :force => true template "rails/script/rails", "#{dummy_path}/spec/dummy/script/rails", :force => true template "initializers/custom_user.rb", "#{dummy_path}/config/initializers/custom_user.rb", :force => true - template "initializers/devise.rb", "#{dummy_path}/config/initializers/devise.rb", :force => true end def test_dummy_inject_extension_requirements diff --git a/core/lib/generators/spree/dummy/templates/initializers/devise.rb b/core/lib/generators/spree/dummy/templates/initializers/devise.rb deleted file mode 100644 index 7dff9547df5..00000000000 --- a/core/lib/generators/spree/dummy/templates/initializers/devise.rb +++ /dev/null @@ -1,3 +0,0 @@ -if Object.const_defined?("Devise") - Devise.secret_key = "<%= SecureRandom.hex(50) %>" -end \ No newline at end of file