aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/renderer/abstract_renderer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Complete work on 3.2 for render_data_leak patch.Arthur Neves2016-02-291-1/+1
| | | | | | | | | | | | | | | | | | Render could leak access to external files before this patch. A previous patch(CVE-2016-0752), attempted to fix this. However the tests were miss-placed outside the TestCase subclass, so they were not running. We should allow :file to be outside rails root, but anything else must be inside the rails view directory. The implementation has changed a bit though. Now the patch is more similar with the 4.x series patches. Now `render 'foo/bar'`, will add a special key in the options hash, and not use the :file one, so when we look up that file, we don't set the fallbacks, and only lookup a template, to constraint the folders that can be accessed. CVE-2016-2097
* fix issue #11605Kassio Borges2013-08-241-6/+0
|
* Common behavior with adding formats to lookup_context for TemplateRenderer ↵Dmitry Vorotilin2013-04-021-0/+6
| | | | and PartialRenderer
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-221-1/+1
| | | | | | is being rendered Closes #5025 part 2
* Using #extract_details in PartialRenderer, too!Nick Sutterer2011-09-231-2/+0
|
* Allow both sym and array for details options in #render. using ↵Nick Sutterer2011-09-231-1/+12
| | | | LC#registered_details to extract options.
* Deprecate passing the template handler in the template name.José Valim2011-09-221-1/+1
| | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases.
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-10/+6
|
* no @controller dependency in Renderers.Nick Sutterer2011-05-041-2/+1
|
* Remove view dependency from AV::Renderer.José Valim2011-05-011-2/+2
|
* Start abstracting the renderer.José Valim2011-05-011-2/+2
|
* extract formats_regexp as a methodSantiago Pastorino2010-10-161-2/+5
|
* There's no need now to expose lookup_context as an external APISantiago Pastorino2010-10-161-3/+1
|
* Delegate freeze_formats to lookup_contextSantiago Pastorino2010-10-161-2/+2
|
* Remove the :vew attr_reader from ActionView::AbstractRenderer [#5819 ↵Jeff Kreeftmeijer2010-10-161-1/+1
| | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add support to render :once.José Valim2010-10-101-6/+6
| | | | This will be used internally by sprockets to ensure requires are executed just once.
* Clean up the house before moving in the new furniture.José Valim2010-10-101-0/+36
This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.