instance method _sql_for_find

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

_sql_for_find(sql)

No documentation comment.

Parameters

sql req
Source
# File activerecord/lib/active_record/querying.rb, line 135
      def _sql_for_find(sql)
        return sql unless sql.is_a?(Array)

        statement, *values = sql
        bound_sql_literal_for(statement, values)
      end

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

Defined in ActiveRecord::Querying

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close