Skip to content

Commit

Permalink
one of many
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Jan 13, 2025
1 parent 5265af0 commit a0d4a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/countless/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class Configuration
# prefix to all relative path/file configurations.
config_accessor(:base_path) do
# Check for a Rake invoked call
if defined? Rake
path = Rake.application&.rakefile_location
path ||= Rake.application&.original_dir
if defined?(Rake) && Rake.respond_to?(:application)
path = Rake.application.rakefile_location
path ||= Rake.application.original_dir
next path if path.present?
end

Expand Down

0 comments on commit a0d4a29

Please sign in to comment.