This project is archived and is in readonly mode.
current_render_extension nil after render :inline
-
Daniel Guettler
- Tag changed from 2.1, actionpack, bug, helper, patch to 2.1, actionpack, bug, helper, patch, tested
added patch with tests for render :inline followed by fragment cache
-
Daniel Guettler
I'm not so convinced of my solution any more after coming across this related ticket: http://rails.lighthouseapp.com/p...
I'm wondering if this should not rather be changed in Template prepare! method:
def prepare! @view.send :evaluate_assigns @view.current_render_extension = @extension if @handler.compilable? @handler.compile_template(self) # compile the given template, if necessary @method = @view.method_names[method_key] # Set the method name for this template and run it end endby preventing current_render_extension from being set to nil which would preserve the last active render_extension versus falling back to the default.
-
Repository
- State changed from open to resolved
(from [e0fef66149092dd3d2988fff64f0ce8765735687]) Made ActionView::Base#first_render a little more private. And added _last_render to track the most recent render. Will fix #609 current_render_extension nil after render :inline as a side effect. [#609 state:resolved]
