Skip to content

Commit

Permalink
Fix 2.4.0 find/replace typo bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
fotinakis committed Feb 10, 2017
1 parent 7f831a0 commit a23a9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/percy/capybara/loaders/sprockets_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def build_resources

if defined?(ActionController)
# Ask Rails where this asset is (this handles asset_hosts, digest paths, etc.).
resource_url = ActionController::Base.helpers.assets_dir(logical_path)
resource_url = ActionController::Base.helpers.asset_path(logical_path)
else
# TODO: more robust support for Sprockets usage outside Rails, ie Sinatra.
# How do we find the correct path in that case?
Expand Down

0 comments on commit a23a9d5

Please sign in to comment.