Skip to content

Commit a0d4a29

Browse files
committed
one of many
Signed-off-by: Hermann Mayer <[email protected]>
1 parent 5265af0 commit a0d4a29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/countless/configuration.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class Configuration
1212
# prefix to all relative path/file configurations.
1313
config_accessor(:base_path) do
1414
# Check for a Rake invoked call
15-
if defined? Rake
16-
path = Rake.application&.rakefile_location
17-
path ||= Rake.application&.original_dir
15+
if defined?(Rake) && Rake.respond_to?(:application)
16+
path = Rake.application.rakefile_location
17+
path ||= Rake.application.original_dir
1818
next path if path.present?
1919
end
2020

0 commit comments

Comments
 (0)