Skip to content

Use asset_path with error checking for all calls to path_to_asset #143

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

Merged
merged 8 commits into from
Apr 22, 2014

Conversation

namukang
Copy link
Contributor

Currently, asset_path with error checking is aliased to path_to_asset_with_errors. This requires having to override javascript_path, javascript_url, stylesheet_path, stylesheet_url in order to check if assets accessed using those helpers need to be included in the precompile array (this was not done in #84, which means asset_path produces error messages while javascript_path, etc. does not). By aliasing the asset_path with error checking to path_to_assets which those helpers already use, we force the helpers to go through the error checking.

Most of the changes are additions to the tests.

@namukang
Copy link
Contributor Author

@matthewd

@matthewd
Copy link
Member

❤️

/cc @schneems @rafaelfranca

rafaelfranca added a commit that referenced this pull request Apr 22, 2014
Use `asset_path` with error checking for all calls to `path_to_asset`
@rafaelfranca rafaelfranca merged commit 2de6c40 into rails:master Apr 22, 2014
rafaelfranca added a commit that referenced this pull request Apr 22, 2014
Use `asset_path` with error checking for all calls to `path_to_asset`
@namukang namukang deleted the js-css-path branch April 23, 2014 04:04
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.

3 participants