diff options
author | Manfred Stienstra <manfred@fngtps.com> | 2008-09-11 22:38:20 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-11 22:51:26 +0200 |
commit | babbc1580da9e4a23921ab68d47c7c0d2e8447da (patch) | |
tree | 5f84cc282530fc8510812c9ca2b75f32e93f348f /activerecord/lib/active_record | |
parent | 923f4ecad202e45ef117d592053c8b86549eb9d7 (diff) | |
download | rails-babbc1580da9e4a23921ab68d47c7c0d2e8447da.tar.gz rails-babbc1580da9e4a23921ab68d47c7c0d2e8447da.tar.bz2 rails-babbc1580da9e4a23921ab68d47c7c0d2e8447da.zip |
Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars values.
- Adds String#acts_like_string?
- Adds Chars#acts_like_string?
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1029 state:committed]
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index fc6d762fcd..91b69747e0 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2152,7 +2152,7 @@ module ActiveRecord #:nodoc: end def quote_bound_value(value) #:nodoc: - if value.respond_to?(:map) && !value.is_a?(String) + if value.respond_to?(:map) && !value.acts_like?(:string) if value.respond_to?(:empty?) && value.empty? connection.quote(nil) else |