diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-14 15:58:12 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-14 15:58:12 -0700 |
commit | 2db7304c2c338711b265e92a51d29121cbd702e6 (patch) | |
tree | a35b0944efb56f952c678e45d486398b2b026432 /activemodel/Rakefile | |
parent | 8e489db9dee1f4cfb0c3a259bd59626d86eacb07 (diff) | |
download | rails-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 'activemodel/Rakefile')
0 files changed, 0 insertions, 0 deletions