aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/explain.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-03-02 11:26:23 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2015-03-02 11:26:23 -0800
commit0814bb62e5128aff7bfa55211efbd10ad3e37c07 (patch)
tree3688e7f0cf65f203c1dc43277d574375a1d881fc /activerecord/lib/active_record/explain.rb
parentb1051c5dfa0a5d9f7bb672ce9223167d1b5415a9 (diff)
downloadrails-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 'activerecord/lib/active_record/explain.rb')
0 files changed, 0 insertions, 0 deletions