Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Protect against nil source in offline_asset_paths #143

Merged
merged 1 commit into from
Aug 21, 2014
Merged

Protect against nil source in offline_asset_paths #143

merged 1 commit into from
Aug 21, 2014

Conversation

werkshy
Copy link
Contributor

@werkshy werkshy commented Aug 21, 2014

The monkey-patched offline asset path stuff was receiving a nil 'source' argument in our app and crashing before writing the assets and runner.html. It seems prudent to just ignore these. (This PR fixes the problem for us).

FWIW the line in our code that seemed to be triggering this was this:

"#{ActionController::Base.asset_host}#{ActionController::Base.helpers.asset_path(self.checkout_image)}",

I think in this case self.checkout_image is nil.

searls added a commit that referenced this pull request Aug 21, 2014
Protect against nil source in offline_asset_paths
@searls searls merged commit 1b4a3c6 into testdouble:master Aug 21, 2014
@searls
Copy link
Member

searls commented Aug 21, 2014

Landed in 0.10.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants