-
-
Save jeremy/89ef4d0b569a85e6d493aeafdf85b261 to your computer and use it in GitHub Desktop.
Sprockets 4 asset loader for Percy.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PercyRails5Loader < Percy::Capybara::Loaders::SprocketsLoader | |
def initialize(options = {}) | |
super | |
@sprockets_environment = Rails.application.assets | |
@sprockets_options = Rails.application.config.assets | |
end | |
def _asset_logical_paths | |
Rails.application.precompiled_assets | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment