instance method bound_attributes

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.1.7

Available in: v5.0.7.2 v5.1.7

Signature

bound_attributes()

No documentation comment.

Source
# File activerecord/lib/active_record/relation/query_methods.rb, line 101
    def bound_attributes
      if limit_value && !string_containing_comma?(limit_value)
        limit_bind = Attribute.with_cast_value(
          "LIMIT".freeze,
          connection.sanitize_limit(limit_value),
          Type::Value.new,
        )
      end
      if offset_value
        offset_bind = Attribute.with_cast_value(
          "OFFSET".freeze,
          offset_value.to_i,
          Type::Value.new,
        )
      end
      connection.combine_bind_parameters(
        from_clause: from_clause.binds,
        join_clause: arel.bind_values,
        where_clause: where_clause.binds,
        having_clause: having_clause.binds,
        limit: limit_bind,
        offset: offset_bind,
      )
    end

Defined in activerecord/lib/active_record/relation/query_methods.rb line 101 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::QueryMethods

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