aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-08-17 18:14:44 +0100
committerJon Leighton <j@jonathanleighton.com>2012-08-17 18:22:29 +0100
commit8cbad0293b134d56fb01e5f500010603b4c18cc7 (patch)
treec93b2d760990a170f61b9493167ce24a4d283bdb /activerecord/lib/active_record/associations
parent2ff47c48975b52a23982fc7bae592ab32d4fff2e (diff)
downloadrails-8cbad0293b134d56fb01e5f500010603b4c18cc7.tar.gz
rails-8cbad0293b134d56fb01e5f500010603b4c18cc7.tar.bz2
rails-8cbad0293b134d56fb01e5f500010603b4c18cc7.zip
Optimize for the happy path
Checking respond_to? incurs overhead, and most of the time when assigning attributes it will return true. So just handle the NoMethodError instead.
Diffstat (limited to 'activerecord/lib/active_record/associations')
0 files changed, 0 insertions, 0 deletions