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

Correctly override image_path in sprockets rails_helper #3138

Merged
merged 2 commits into from
Sep 26, 2011
Merged

Correctly override image_path in sprockets rails_helper #3138

merged 2 commits into from
Sep 26, 2011

Conversation

christos
Copy link
Contributor

This commit 0cb84f1 broke the image_path helper when the assets pipeline is enabled.

Instead of /assets it would prepend /images when image_path() was used. This is due to the way image_path and path_to_image are aliased to each other in asset_tag_helper

This patch fixes the image_path helper.

I am perplexed as to why in sprockets_helper_text what is tested is asset_path, an undocumented method, and not image_path which is the publish API (along with video_path, audio_path and all its siblings)

Shouldn't the test be refactored somehow?

spastorino added a commit that referenced this pull request Sep 26, 2011
Correctly override image_path in sprockets rails_helper
@spastorino spastorino merged commit e97b6f2 into rails:master Sep 26, 2011
spastorino added a commit that referenced this pull request Sep 26, 2011
Correctly override image_path in sprockets rails_helper
@christos christos deleted the correct_image_path_with_pipeline branch April 22, 2015 08:43
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

2 participants