We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5265af0 commit a0d4a29Copy full SHA for a0d4a29
lib/countless/configuration.rb
@@ -12,9 +12,9 @@ class Configuration
12
# prefix to all relative path/file configurations.
13
config_accessor(:base_path) do
14
# Check for a Rake invoked call
15
- if defined? Rake
16
- path = Rake.application&.rakefile_location
17
- path ||= Rake.application&.original_dir
+ if defined?(Rake) && Rake.respond_to?(:application)
+ path = Rake.application.rakefile_location
+ path ||= Rake.application.original_dir
18
next path if path.present?
19
end
20
0 commit comments