Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle file not being in digest for asset pipeline #71

Closed
wants to merge 2 commits into from

Conversation

zsalzbank
Copy link

The AssetPipelineLoader would use Kernel.open to try and retreive an
absolute path on the server (i.e. '/stylesheets/email.css'). This patch
makes request_and_unzip return nil when the file cannot be found so that
the FileSystemLoader is used as a last resort.

The AssetPipelineLoader would use Kernel.open to try and retreive an
absolute path on the server (i.e. '/stylesheets/email.css').  This patch
makes request_and_unzip return nil when the file cannot be found so that
the FileSystemLoader is used as a last resort.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e280c48 on keyme:master into 3ad40ef on fphilipe:master.

@jezstephens
Copy link
Contributor

Should this also handle the case where ::Rails.configuration.assets.digests is nil? This seems to happen when digests are configured off, i.e. config.assets.digest == false.

this happens when digests are off:
  config.assets.digest == false

thanks for the suggestion @jezstephens
@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling 2625cd5 on keyme:master into 3ad40ef on fphilipe:master.

@fphilipe
Copy link
Owner

Digests are no longer used to construct the URL. Instead the original URL is used.

@fphilipe fphilipe closed this Nov 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants