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

add support for image_path helper in previews #1119

Merged
merged 2 commits into from
Nov 2, 2021
Merged

Conversation

joelhawksley
Copy link
Member

Summary

Currently, ViewComponent previews do not have access to the Rails image helpers. @tobiasahlin and I ran into this issue when writing a preview today.

Co-authored-by: Tobias Ahlin tobiasahlin@github.com

Co-authored-by: Tobias Ahlin <tobiasahlin@github.com>
@joelhawksley joelhawksley requested a review from a team as a code owner November 2, 2021 16:04
…view.rb

Co-authored-by: Hans Lemuet <Spone@users.noreply.github.com>
@Spone
Copy link
Collaborator

Spone commented Nov 2, 2021

This will be pretty useful as a default. I'm also wondering if URL helpers should be included as well?

@joelhawksley joelhawksley merged commit 1aed709 into main Nov 2, 2021
@joelhawksley joelhawksley deleted the preview-image-path branch November 2, 2021 16:46
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.

2 participants