diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-03-02 11:26:23 -0800 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-03-02 11:26:23 -0800 |
| commit | 0814bb62e5128aff7bfa55211efbd10ad3e37c07 (patch) | |
| tree | 3688e7f0cf65f203c1dc43277d574375a1d881fc /actionpack/lib/action_pack/version.rb | |
| parent | b1051c5dfa0a5d9f7bb672ce9223167d1b5415a9 (diff) | |
| download | rails-0814bb62e5128aff7bfa55211efbd10ad3e37c07.tar.gz rails-0814bb62e5128aff7bfa55211efbd10ad3e37c07.tar.bz2 rails-0814bb62e5128aff7bfa55211efbd10ad3e37c07.zip | |
be optimistic about missing route keys
this patch makes errors slightly more expensive when someone is missing
a route key, but in exchange it drops 4 allocations per `url_for` call.
Since missing a route key is an error, optimizing for the non-error path
seems like a good trade off
Diffstat (limited to 'actionpack/lib/action_pack/version.rb')
0 files changed, 0 insertions, 0 deletions
