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

Take view context from the bag and help with a plug #6

Merged
merged 2 commits into from
Jul 4, 2019

Conversation

waiting-for-dev
Copy link
Owner

Instead of configuring at the class level, now the view_context to be injected with Dry::Context::with is taken from a :view_context key in the bag.

Plugs::ViewContext creates an operation which automatically assigns the view context calling given Proc with the Conn at the moment of execution.

@waiting-for-dev waiting-for-dev added the enhancement New feature or request label Jul 4, 2019
@waiting-for-dev waiting-for-dev merged commit c8aa110 into master Jul 4, 2019
@waiting-for-dev waiting-for-dev deleted the dry_view_plug branch July 4, 2019 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant