aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/renderer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Deduplicate strings held by the routerJean Boussier2019-04-031-1/+1
|
* [ci skip] Fix typosShailesh Kalamkar2019-03-071-1/+1
|
* Use native `Array#append`, `Array#prepend`, `Hash#transform_keys`, and ↵Ryuta Kamizono2018-12-201-2/+0
| | | | | | | | | | `Hash#transform_keys!` Since Rails 6 requires Ruby 2.5. https://github.com/ruby/ruby/blob/ruby_2_5/NEWS Follow up #34754.
* Fix unclosed tags [ci skip]yuuji.yaginuma2018-08-181-1/+1
|
* Add render options in action_controller/renderer for api documentation [ci skip]Alireza Bashiri2018-07-221-0/+15
| | | | | | Complete renderer documentation Fixes #28484
* Use frozen string literal in actionpack/Kir Shatrov2017-07-291-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Merge pull request #28381 from shime/docs-action-controller-baseVipul A M2017-03-131-2/+2
|\ | | | | [docs] fix ActionController docs
| * [docs] fix ActionController documentationHrvoje Šimić2017-03-121-2/+2
| | | | | | | | [ci skip]
* | Fixes ActionController::Rendering#with_defaultsalpaca-tc2017-03-121-1/+1
|/ | | | `env` is undefined.
* Fix malformed asset_url when rendering template with ActionController::RendererGiorgos Vrettos2017-03-061-0/+1
|
* fix method name in `Renderer` doc [ci skip]yuuji.yaginuma2017-01-121-1/+2
| | | | `ActionController::Renderer.defaults` was removed in 2db7304
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Allow any key in Renderer environment hashSammy Larbi2016-10-151-1/+3
| | | | | | When rendering arbitrary templates, it is helpful to not overwrite `env` keys with nil if they don't match any found in the `RACK_KEY_TRANSLATION` This allows the developer to set the environment to exactly what is needed for rendering.
* applies new string literal convention in actionpack/libXavier Noria2016-08-061-12/+12
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fix typo in ActionController::Renderer [ci skip]Alex Kitchens2016-06-101-1/+1
|
* Merge pull request #24845 from tomkadwill/action_controller_typosRafael França2016-05-041-2/+2
|\ | | | | Fix actionpack typos [ci skip]
| * Fix actionpack typos [ci skip]Tom Kadwill2016-05-041-2/+2
| |
* | Fix ApplicationController.renderer.defaults.merge!Jon Moss2016-04-201-1/+1
|/ | | | | | | Previously, users were trying to modify a frozen Hash. Includes a regression test :) Fixes #22975
* allocate request objects with the env hash, set routes on the requestAaron Patterson2015-09-151-2/+6
| | | | | This commit is to abstract the code away from the env hash. It no longer needs to have the routes key hard coded.
* only "normalize" onceAaron Patterson2015-09-141-1/+1
|
* create a new renderer instance on calls to `for`Aaron Patterson2015-09-141-39/+46
| | | | | | | | | | | | This changes the renderer class to store the controller and defaults as an instance variable rather than allocating a new class. You can create a new renderer with an new env by calling `Renderer#new` or use new defaults by calling `Renderer#with_defaults` and saving the return value somewhere. Also I want to keep the `env` private since I would like to change the keys in the future. This commit only translates particular keys that the user requested.
* Speed up `normalize_keys` by removing dup step.Kasper Timm Hansen2015-01-221-9/+6
| | | | | | | | Previously env was duplicated and then had it's keys mutated. This iterates through the hash twice. Using `transform_keys`, duplication and key mutation is a single iteration. `convert_symbols` was renamed to `http_header_format`.
* Add ActionController::Rendererbrainopia2015-01-221-0/+103
Render arbitrary templates outside of controller actions