method

sql_for

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: PartialQuery
sql_for(binds, connection) public

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/statement_cache.rb, line 51
      def sql_for(binds, connection)
        val = @values.dup
        @indexes.each do |i|
          value = binds.shift
          if ActiveModel::Attribute === value
            value = value.value_for_database
          end
          val[i] = connection.quote(value)
        end
        val.join
      end
Register or log in to add new notes.