aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-01-24 04:40:41 -0800
committerJosé Valim <jose.valim@gmail.com>2012-01-24 04:40:41 -0800
commit352159888bfdcb7cd6aa336187a2b4ab68795912 (patch)
tree7473bf622f9fff078195d7ac13542615bb0f064a
parente23dbec33094bfb38f97b7f300fdc70299521f56 (diff)
parentb5636e4fd8b0efbe8c8ca1879d0d7fbb7ad24fc7 (diff)
downloadrails-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.rb3
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