diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-26 16:40:18 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-26 16:40:18 -0700 |
commit | 1a3e739dbeda69f4f8aeb91964ca7b14189d1efa (patch) | |
tree | 70566c9bc8719b9d9af9714d59a9cc348d5c03e1 /activerecord/lib/active_record | |
parent | 9a6ed049144de5b91b521b79c373f7cd90cc430c (diff) | |
download | rails-1a3e739dbeda69f4f8aeb91964ca7b14189d1efa.tar.gz rails-1a3e739dbeda69f4f8aeb91964ca7b14189d1efa.tar.bz2 rails-1a3e739dbeda69f4f8aeb91964ca7b14189d1efa.zip |
Remove unnecessary branch from quoting in Mysql
This is already the behavior for `BigDecimal` in the abstract adapter.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 8efb288c95..82e62786ca 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -223,8 +223,6 @@ module ActiveRecord if value.kind_of?(String) && column && column.type == :binary s = value.unpack("H*")[0] "x'#{s}'" - elsif value.kind_of?(BigDecimal) - value.to_s("F") else super end |