# File lib/arel/algebra/relations/operations/where.rb, line 5 5: def initialize(relation, predicates) 6: super(relation) 7: @predicates = predicates.respond_to?(:map) ? 8: predicates.map { |p| p.bind(relation) } : [predicates.bind(relation)] 9: @wheres = nil 10: end
# File lib/arel/algebra/relations/operations/where.rb, line 16 16: def eval 17: unoperated_rows.select { |row| predicates.all? { |p| p.eval(row) } } 18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.