diff options
author | Dylan Thacker-Smith <Dylan.Smith@shopify.com> | 2018-06-22 11:54:31 -0400 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2018-10-12 09:50:10 -0700 |
commit | 99c87ad2474d5c5b6e52ceac34c3cf9f9cb57f9f (patch) | |
tree | f1000530afb4b52af586e5486db5df50b52b9e81 /activerecord/lib/active_record/base.rb | |
parent | ee95bed3e6e16eadd1940d9c27953236f1649c08 (diff) | |
download | rails-99c87ad2474d5c5b6e52ceac34c3cf9f9cb57f9f.tar.gz rails-99c87ad2474d5c5b6e52ceac34c3cf9f9cb57f9f.tar.bz2 rails-99c87ad2474d5c5b6e52ceac34c3cf9f9cb57f9f.zip |
Improve model attribute accessor method names for backtraces
Ruby uses the original method name, so will show the __temp__ method
name in the backtrace. However, in the common case the method name
is compatible with the `def` keyword, so we can avoid the __temp__
method name in that case to improve the name shown in backtraces
or TracePoint#method_id.
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
0 files changed, 0 insertions, 0 deletions