instance method quote_bound_value

Ruby on Rails 6.0.6

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

quote_bound_value(value, c = connection)

No documentation comment.

Parameters

value req
c opt = connection
Source
# File activerecord/lib/active_record/sanitization.rb, line 194
        def quote_bound_value(value, c = connection)
          if value.respond_to?(:map) && !value.acts_like?(:string)
            quoted = value.map { |v| c.quote(v) }
            if quoted.empty?
              c.quote(nil)
            else
              quoted.join(",")
            end
          else
            c.quote(value)
          end
        end

Defined in activerecord/lib/active_record/sanitization.rb line 194 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Sanitization::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close