instance method
bound_attributes
Ruby on Rails 5.1.7
Since v5.0.7.2 Last seen in v5.1.7Available 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 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
Defined in activerecord/lib/active_record/relation/query_methods.rb line 77
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::QueryMethods