-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #476 issue - problem with sprockets 3.0
Remove `asset_exists?` method. Replace it with `File.file?` at `read_asset`. Fix issue handled by `asset_exists?` at `wicked_pdf_stylesheet_link_tag` by changing `asset_pathname` method. `asset_exists?` coused problems with sprockets 3.0 so removing it fixes that. Always process assets at `wicked_pdf_stylesheet_link_tag` with `wicked_pdf_asset_path`. This fixes issue when `url(http://example.com/rails.png)` was removed. Rename `precompiled_asset?` to `precompiled_or_absolute_asset?` - this more precisely describe what this method does. Additionally return `true` if argument string starts with "http://" or "http://". Change `asset_pathname` to always return some value when assets compilation is enabled. This fixes problem when exception is raised when asset doesn't exists. Change `read_asset` to check if file exists before read it. Fix test
- Loading branch information
1 parent
2d2fb07
commit 2250c2f
Showing
2 changed files
with
70 additions
and
25 deletions.
There are no files selected for viewing
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
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