aboutsummaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-14 15:58:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-14 15:58:12 -0700
commit2db7304c2c338711b265e92a51d29121cbd702e6 (patch)
treea35b0944efb56f952c678e45d486398b2b026432 /Gemfile
parent8e489db9dee1f4cfb0c3a259bd59626d86eacb07 (diff)
downloadrails-2db7304c2c338711b265e92a51d29121cbd702e6.tar.gz
rails-2db7304c2c338711b265e92a51d29121cbd702e6.tar.bz2
rails-2db7304c2c338711b265e92a51d29121cbd702e6.zip
create a new renderer instance on calls to `for`
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.
Diffstat (limited to 'Gemfile')
0 files changed, 0 insertions, 0 deletions