Module: ActiveRecordAddons::Relation
- Defined in:
- lib/active_record_addons/relation.rb
Instance Method Summary collapse
-
#to_where_clause ⇒ Object
Emits the “where clause” portion of the query as interpolated SQL.
Instance Method Details
#to_where_clause ⇒ Object
Emits the “where clause” portion of the query as interpolated SQL
3 4 5 6 7 |
# File 'lib/active_record_addons/relation.rb', line 3 def to_where_clause connection.unprepared_statement do connection.to_sql where_clause, where_clause.binds end end |