Module: ActiveRecordExtended::WhereClause

Defined in:
lib/active_record_extended/patch/5_1/where_clause.rb,
lib/active_record_extended/patch/5_2/where_clause.rb

Instance Method Summary collapse

Instance Method Details

#modified_predicates(&block) ⇒ Object



5
6
7
# File 'lib/active_record_extended/patch/5_1/where_clause.rb', line 5

def modified_predicates(&block)
  ::ActiveRecord::Relation::WhereClause.new(predicates.map(&block), binds)
end