diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-07-22 13:49:50 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-07-25 17:13:53 +0900 |
commit | 44f785357cc001230215dea09bee6738e5612c63 (patch) | |
tree | e22c57947a411cb4ffdfbabffd31511e732d92df /actionpack/lib/action_controller/base.rb | |
parent | 3c6f35dc03e3543b418bcee38dc5f3ffbe92a72c (diff) | |
download | rails-44f785357cc001230215dea09bee6738e5612c63.tar.gz rails-44f785357cc001230215dea09bee6738e5612c63.tar.bz2 rails-44f785357cc001230215dea09bee6738e5612c63.zip |
Use Ruby 2.0 caller_locations instead of caller if available
* we no more have to manipulate the each caller strings by ourselves using caller_locations
* caller_locations runs slightly faster, and creates less objects than good old caller
Benchmark (loading an Engine 1000 times):
caller: 262.89 ms
caller_locations: 186.068 ms
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
0 files changed, 0 insertions, 0 deletions