-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deferred render entirely (#805)
This abstraction is too confusing. If you understand the concept, you can still use it by yielding early. ```ruby def view_template vanish { yield } # ... end ``` This PR also changes the callbacks so `before_template` is given the block and can yield it. ```ruby def before_template vanish { yield } end ``` You can put this in a module called `DeferredRender` if you want. It’s up to you. --------- Co-authored-by: Will Cosgrove <[email protected]>
- Loading branch information
1 parent
7f166d7
commit 42228c2
Showing
4 changed files
with
21 additions
and
27 deletions.
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 was deleted.
Oops, something went wrong.
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