Skip to content
This repository
Browse code

Builder should not be responsible for running store_application_defin…

…ition method
  • Loading branch information...
commit 48fef64cb5d38b2ac81a483bb0fad89c2134dcdc 1 parent ae1debd
Piotr Sarnacki authored
2  railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
@@ -41,7 +41,6 @@ def generate_test_dummy
41 41
     end
42 42
 
43 43
     def test_dummy_config
44  
-      store_application_definition!
45 44
       template "rails/boot.rb", "#{dummy_path}/config/boot.rb", :force => true
46 45
       template "rails/application.rb", "#{dummy_path}/config/application.rb", :force => true
47 46
     end
@@ -168,6 +167,7 @@ def create_test_dummy_files
168 167
       say_step "Configuring Rails application"
169 168
 
170 169
       def change_config_files
  170
+        store_application_definition!
171 171
         build(:test_dummy_config)
172 172
       end
173 173
 

0 notes on commit 48fef64

Please sign in to comment.
Something went wrong with that request. Please try again.