Skip to content

Commit 5265af0

Browse files
committed
one of many
Signed-off-by: Hermann Mayer <hermann.mayer92@gmail.com>
1 parent e57c67b commit 5265af0

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
@@ -13,9 +13,9 @@ class Configuration
1313
config_accessor(:base_path) do
1414
# Check for a Rake invoked call
1515
if defined? Rake
16-
path = Rake.application.rakefile_location
17-
path = Rake.application.original_dir unless path.present?
18-
next path
16+
path = Rake.application&.rakefile_location
17+
path ||= Rake.application&.original_dir
18+
next path if path.present?
1919
end
2020

2121
# Check for Rails as fallback

0 commit comments

Comments
 (0)