Sha256: a238e59b74ae4205563119270d2ae479783d78ef712e1754b348c3127dc445ea

Contents?: true

Size: 235 Bytes

Versions: 1

Compression:

Stored size: 235 Bytes

Contents

class ActiveRecordAddons::Relation
  # Emits the "where clause" portion of the query as interpolated SQL
  def where_sql
    connection.unprepared_statement do
      connection.to_sql where_clause, where_clause.binds
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record_addons-0.1.0 lib/active_record_addons/relation.rb