From 2b8aac4c545dbf2d62beb2e506327af8cb50bc95 Mon Sep 17 00:00:00 2001 From: Dmitry Kulikov Date: Mon, 24 Apr 2023 19:44:30 +0200 Subject: [PATCH] In Rails 3.2 the method File#exists? is removed --- cli/lib/compass/configuration/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/lib/compass/configuration/helpers.rb b/cli/lib/compass/configuration/helpers.rb index a9aef82e38..f86e43fc74 100644 --- a/cli/lib/compass/configuration/helpers.rb +++ b/cli/lib/compass/configuration/helpers.rb @@ -86,7 +86,7 @@ def add_project_configuration(*args) # Finds the configuration file, if it exists in a known location. def detect_configuration_file(project_path = nil) possible_files = KNOWN_CONFIG_LOCATIONS.map{|f| projectize(f, project_path) } - possible_files.detect{|f| File.exists?(f)} + possible_files.detect{|f| File.exist?(f)} end def handle_configuration_change!