aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-10 16:46:41 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-10 16:46:41 +0000
commit0c72e6d665048d51de06f6bc3dfe674be31391a4 (patch)
tree49c49a10af1d84521ac9f13c6415c0ce92984a46 /activerecord/lib/active_record/connection_adapters
parentaaf9a45ca9ce5ceb67b7d4ae0dff350389b72c69 (diff)
downloadrails-0c72e6d665048d51de06f6bc3dfe674be31391a4.tar.gz
rails-0c72e6d665048d51de06f6bc3dfe674be31391a4.tar.bz2
rails-0c72e6d665048d51de06f6bc3dfe674be31391a4.zip
Options for the new validation methods are now given as a hash
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rwxr-xr-xactiverecord/lib/active_record/connection_adapters/abstract_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
index 87bad183ab..1a26057528 100755
--- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -324,7 +324,7 @@ module ActiveRecord
def quote(value, column = nil)
case value
- when String then %('#{quote_string(value)}') # ' (for ruby-mode)
+ when String then "'#{quote_string(value)}'" # ' (for ruby-mode)
when NilClass then "NULL"
when TrueClass then (column && column.type == :boolean ? "'t'" : "1")
when FalseClass then (column && column.type == :boolean ? "'f'" : "0")