Flowdock
method

bound_attributes

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
bound_attributes() 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/relation/query_methods.rb, line 77
    def bound_attributes
      if limit_value
        limit_bind = Attribute.with_cast_value(
          "LIMIT".freeze,
          connection.sanitize_limit(limit_value),
          Type.default_value,
        )
      end
      if offset_value
        offset_bind = Attribute.with_cast_value(
          "OFFSET".freeze,
          offset_value.to_i,
          Type.default_value,
        )
      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
Register or log in to add new notes.