File: //usr/local/rvm/gems/ruby-2.7.4/doc/activerecord-6.1.4.1/ri/ActiveRecord/QueryMethods/rewhere-i.ri
U:RDoc::AnyMethod[iI"rewhere:ETI"'ActiveRecord::QueryMethods#rewhere;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"yAllows you to change a previously set where condition for a given attribute, instead of appending to that condition.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"5Post.where(trashed: true).where(trashed: false)
;TI"-# WHERE `trashed` = 1 AND `trashed` = 0
;TI"
;TI"7Post.where(trashed: true).rewhere(trashed: false)
;TI"# WHERE `trashed` = 0
;TI"
;TI"KPost.where(active: true).where(trashed: true).rewhere(trashed: false)
;TI",# WHERE `active` = 1 AND `trashed` = 0
;T:@format0o;
; [I"XThis is short-hand for <tt>unscope(where: conditions.keys).where(conditions)</tt>. ;TI"kNote that unlike reorder, we're only unscoping the named conditions -- not the entire where statement.;T:
@fileI"0lib/active_record/relation/query_methods.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(conditions);T@FI"QueryMethods;TcRDoc::NormalModule00