aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/renderers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed documentation that still mentioned using respond_with in placeRobert Evans2014-11-051-2/+1
| | | | | of respond_to. respond_with was moved into the responders gem and deprecated inside rails, so there is no need to mention it within rails itself.
* code gardening in ActionController::RenderersXavier Noria2014-09-041-7/+12
| | | | | | | | | | | | | | | | | | | * Renames _handle_render_options to _render_to_body_with_renderer, which is more intention-revealing. * The name of the dynamically generated method for a renderer with key :js was "_render_option_js". That name is too weak. :js is an option if you see the render argument as just a generic options hash, but in the context of renderers that's the renderer key, is what identifies the renderer. Now "_render_with_renderer_js" is generated instead, which is crystal clear. * The name of the dynamically generated method for the renderer was constructed using string literals in a few places. That is now encapsulated in a method. * Since we were on it, also removed a couple of redundant selfs.
* Address CVE-2014-4671 (JSONP Flash exploit)Greg Campbell2014-07-091-1/+1
| | | | | | Adds a comment before JSONP callbacks. See http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/ for more details on the exploit in question.
* Change the JSON renderer to enforce the 'JS' Content TypeLucas Mazza2014-07-021-1/+4
| | | | | | | The controller can set the response format as 'JSON' before the renderer code be evaluated, so we must replace it when necessary. Fixes #15081
* Fix docs for ActionController::Renderers.addGuillermo Iguaran2014-05-261-1/+1
|
* Add ActionController::Renderers.remove.Zuhao Wan2014-05-201-0/+16
|
* ActionController::Renderers documentation fixStevie Graham2014-04-201-2/+2
| | | | | ActionController::Renderers::RENDERERS is an instance of Set. Docs incorrectly state that it's a Hash.
* Improve font of some code in API documentation [ci skip]Chun-wei Kuo2013-12-261-1/+1
| | | | | * Add "<tt>" or "+" to improve font of some code and filenames in API documentation * Does not contain wording changes
* Do not use instance variables if they are not reused elsewhereCarlos Antonio da Silva2013-09-061-2/+1
|
* Fail informatively in #respond_with when no appropriate #api_behavior ↵Ben Woosley2013-08-171-0/+7
| | | | | | | | | | | | renderer is available. Currently if a user calls #respond_with(csvable), but has not csv renderer available, Responder will just run through the default render behavior twice, raising ActionView::MissingTemplate both times. This changes ActionController::Metal::Responder#api_behavior to check in advance whether there is a renderer available, and raise ActionController::MissingRenderer if not.
* Multiple changes to 1,9 hash syntaxAvnerCohen2012-10-271-3/+3
|
* load active_support/core_ext/class/attribute in active_support/railsXavier Noria2012-08-021-1/+0
|
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-1/+0
|
* Avoid calling content type multiple timesJosé Valim2012-04-291-4/+6
|
* Merge remote-tracking branch 'upstream/master'Olli Jokinen2011-12-011-11/+9
|\
| * Refactor to make renderers a SetJose and Yehuda2011-10-151-11/+9
| |
* | Change mimetype to Mime::JS if JSONP is usedOlli Jokinen2011-07-281-1/+4
|/
* Slightly reorganize rendering stack.José Valim2011-04-181-3/+3
|
* removes support for render :updateXavier Noria2011-04-131-8/+1
|
* add some docs for ActionController::RenderersGabriel Horner2011-02-101-0/+37
|
* If a user wants json output then try best to render json output. In such ↵Neeraj Singh2010-11-241-1/+1
| | | | | | | | cases prefer kind_of(String) over respond_to?(to_str) [#5841 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove unused constantSantiago Pastorino2010-11-221-2/+0
|
* Remove unneeded metaprogramming and method generation in favor of direct ↵Santiago Pastorino2010-11-221-24/+10
| | | | definition
* renderer calls object.to_json when rendering :json => object [#5655 ↵Diego Carrion2010-09-271-1/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Always downstream given options in :json, :xml and :js renderers and add ↵José Valim2010-04-221-2/+2
| | | | tests for it.
* It should be possible to render :json with optionswycats2010-04-201-1/+1
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* All tests pass without memoizing view_contextCarlhuda2010-03-181-1/+1
|
* Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-121-1/+2
| | | | controller (so plugins and/or controllers can overwrite just one method).
* Remove the renderer option from the hash.José Valim2010-02-241-1/+1
|
* Convert to class_attributeJeremy Kemper2010-02-011-3/+7
|
* Rename RenderOptions to RenderersDavid Heinemeier Hansson2009-12-201-0/+91