diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-19 09:47:40 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-19 09:47:40 -0600 |
commit | 0aecb473c34b5df3b020ef4ede6d8e36f9009fd7 (patch) | |
tree | baf8e48d01133f94b9299a83bb2f4a47acc3f8a4 /actionview/lib/action_view.rb | |
parent | dccf6da66bf4a63971e1f12b98cb1bb1fe5a9015 (diff) | |
download | rails-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 'actionview/lib/action_view.rb')
0 files changed, 0 insertions, 0 deletions