diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2016-01-27 17:46:06 -0800 | 
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2016-01-27 18:28:04 -0800 | 
| commit | 542b2e9c9b7e24f5337fd529a36f9d89f727e189 (patch) | |
| tree | 078738255d52bd98d97df92f069f523c8cadcffd /actionpack/test/lib/controller/fake_controllers.rb | |
| parent | 2c131141ca5018f41f85be429a02afac93a0241d (diff) | |
| download | rails-542b2e9c9b7e24f5337fd529a36f9d89f727e189.tar.gz rails-542b2e9c9b7e24f5337fd529a36f9d89f727e189.tar.bz2 rails-542b2e9c9b7e24f5337fd529a36f9d89f727e189.zip | |
change `@text_xml_idx` to an lvar and cache it on the stack
this eliminates the ivar lookup and also eliminates the `||=`
conditional that happens every time we called the `text_xml_idx` method.
Diffstat (limited to 'actionpack/test/lib/controller/fake_controllers.rb')
0 files changed, 0 insertions, 0 deletions
