-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise a helpful error if you access
context
before rendering (#863)
If you access the `context` before rendering, the error message says `nil` doesn’t respond to `user_context`. This PR makes `context` return `nil` instead. Opening as a draft as I want to write a test for this before merging.
- Loading branch information
1 parent
ef0de17
commit 0fb1d3c
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters