Module: ActiveRecordAddons::Relation
- Defined in:
- lib/active_record_addons/relation.rb
Instance Method Summary collapse
-
#where_sql ⇒ Object
Emits the “where clause” portion of the query as interpolated SQL.
Instance Method Details
#where_sql ⇒ 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 where_sql connection.unprepared_statement do connection.to_sql where_clause, where_clause.binds end end |