File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
railties/lib/rails/command Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ def set_application_directory!
88 Dir . chdir ( File . expand_path ( "../../" , APP_PATH ) ) unless File . exist? ( File . expand_path ( "config.ru" ) )
99 end
1010
11- if defined? ( ENGINE_PATH )
12- def require_application_and_environment!
13- require ENGINE_PATH
11+ def require_application_and_environment!
12+ require ENGINE_PATH if defined? ( ENGINE_PATH )
1413
15- if defined? ( APP_PATH )
16- require APP_PATH
17- Rails . application . require_environment!
18- end
14+ if defined? ( APP_PATH )
15+ require APP_PATH
16+ Rails . application . require_environment!
1917 end
18+ end
2019
20+ if defined? ( ENGINE_PATH )
2121 def load_tasks
2222 Rake . application . init ( "rails" )
2323 Rake . application . load_rakefile
@@ -29,11 +29,6 @@ def load_generators
2929 engine . load_generators
3030 end
3131 else
32- def require_application_and_environment!
33- require APP_PATH
34- Rails . application . require_environment!
35- end
36-
3732 def load_tasks
3833 Rails . application . load_tasks
3934 end
You can’t perform that action at this time.
0 commit comments