Skip to content

Commit

Permalink
FIX: Check for Webpacker config file existence before trying to acces…
Browse files Browse the repository at this point in the history
…s the configs

Fixes: #457
  • Loading branch information
OsamaSayegh committed Aug 3, 2020
1 parent 6b03139 commit 7453c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_profiler_rails/railtie_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def should_move?(child, node)
end

def get_webpacker_assets_path
if defined?(Webpacker)
if defined?(Webpacker) && Webpacker.config.config_path.exist?
Webpacker.config.public_output_path.to_s.gsub(Webpacker.config.public_path.to_s, "")
end
end
Expand Down

0 comments on commit 7453c58

Please sign in to comment.