diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-08-17 18:14:44 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-08-17 18:22:29 +0100 |
commit | 8cbad0293b134d56fb01e5f500010603b4c18cc7 (patch) | |
tree | c93b2d760990a170f61b9493167ce24a4d283bdb /activerecord/lib/active_record/associations | |
parent | 2ff47c48975b52a23982fc7bae592ab32d4fff2e (diff) | |
download | rails-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