diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-24 04:40:41 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-24 04:40:41 -0800 |
commit | 352159888bfdcb7cd6aa336187a2b4ab68795912 (patch) | |
tree | 7473bf622f9fff078195d7ac13542615bb0f064a | |
parent | e23dbec33094bfb38f97b7f300fdc70299521f56 (diff) | |
parent | b5636e4fd8b0efbe8c8ca1879d0d7fbb7ad24fc7 (diff) | |
download | rails-352159888bfdcb7cd6aa336187a2b4ab68795912.tar.gz rails-352159888bfdcb7cd6aa336187a2b4ab68795912.tar.bz2 rails-352159888bfdcb7cd6aa336187a2b4ab68795912.zip |
Merge pull request #4628 from rafaelfranca/fix-build
Fix broken build
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/quoting.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index 8cc7c50020..44ac37c498 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -71,7 +71,8 @@ module ActiveRecord when Date, Time then quoted_date(value) when Symbol then value.to_s else - raise TypeError, "can't cast #{value.class} to #{column.type}" + to_type = column ? " to #{column.type}" : "" + raise TypeError, "can't cast #{value.class}#{to_type}" end end |