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

append/prepend_view_path support in actions #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qpSHiNqp
Copy link

Added support for runtime append_view_path and prepend_view_path instance methods in controllers.

So far, _xray_bar.html.erb partial have been raising ActionView::MissingTemplate if you call append_view_path or prepend_view_path in your controllers' action, because lookup_context in that partial doesn't take over its view_paths from your controllers' action view.

We added additional view paths to Xray.request_info struct using monkeypatch, and now you can use append_view_path and prepend_view_path in your application.

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.

1 participant