Class: ActiveRecordAddons::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record_addons/relation.rb

Instance Method Summary collapse

Instance Method Details

#where_sqlObject

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