Skip to content

Commit bc019de

Browse files
committed
explicitly do a File.exist? check since real_path won't be enough to assure it exists
1 parent 421d94a commit bc019de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/ruby/jruby/rack/rails_booter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def run_boot_hooks
7272
private
7373

7474
def rails2?
75-
# a File.exist? File.join(app_path, 'config/application.rb')
76-
! real_path File.join(layout.app_uri, 'config/application.rb')
75+
app_path = real_path File.join(layout.app_uri, 'config/application.rb')
76+
app_path && File.exist?(app_path) ? false : true
7777
end
7878

7979
class << self

0 commit comments

Comments
 (0)