We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e57c67b commit 5265af0Copy full SHA for 5265af0
lib/countless/configuration.rb
@@ -13,9 +13,9 @@ class Configuration
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 unless path.present?
18
- next path
+ path = Rake.application&.rakefile_location
+ path ||= Rake.application&.original_dir
+ next path if path.present?
19
end
20
21
# Check for Rails as fallback
0 commit comments