quote_bound_value(value, c = connection, column = nil) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/sanitization.rb, line 165
      def quote_bound_value(value, c = connection, column = nil) #:nodoc:
        if column
          c.quote(value, column)
        elsif value.respond_to?(:map) && !value.acts_like?(:string)
          if value.respond_to?(:empty?) && value.empty?
            c.quote(nil)
          else
            value.map { |v| c.quote(v) }.join(',')
          end
        else
          c.quote(value)
        end
      end
Register or log in to add new notes.