diff --git a/apps/dashboard/config/application.rb b/apps/dashboard/config/application.rb index 165a91306..9ef6562a7 100644 --- a/apps/dashboard/config/application.rb +++ b/apps/dashboard/config/application.rb @@ -49,7 +49,7 @@ class Application < Rails::Application # Determine if this path is safe to load. I.e., are all the files root owned. def safe_load_path?(path) - path.exists? && path.children.all? { |f| File.stat(f).uid.zero? } + path.exist? && path.children.all? { |f| File.stat(f).uid.zero? } end # Enable installed plugins only if configured by administrator