aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-06-19 09:47:40 -0600
committerSean Griffin <sean@thoughtbot.com>2014-06-19 09:47:40 -0600
commit0aecb473c34b5df3b020ef4ede6d8e36f9009fd7 (patch)
treebaf8e48d01133f94b9299a83bb2f4a47acc3f8a4 /activerecord/lib/active_record/associations
parentdccf6da66bf4a63971e1f12b98cb1bb1fe5a9015 (diff)
downloadrails-0aecb473c34b5df3b020ef4ede6d8e36f9009fd7.tar.gz
rails-0aecb473c34b5df3b020ef4ede6d8e36f9009fd7.tar.bz2
rails-0aecb473c34b5df3b020ef4ede6d8e36f9009fd7.zip
Further simplify `changed?` conditional for numeric types
`Type::Integer.new.type_cast('') # => nil`, we do not need a special case to handle this, `nil => ''` already returns false. The only case we need to handle is `0 => 'wibble'` should be changed, while `0 => '0'` should not.
Diffstat (limited to 'activerecord/lib/active_record/associations')
0 files changed, 0 insertions, 0 deletions