Class: Arel::Compatibility::Wheres
- Inherits:
-
Object
- Object
- Arel::Compatibility::Wheres
- Includes:
- Enumerable
- Defined in:
- lib/arel/compatibility/wheres.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Value
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(engine, collection) ⇒ Wheres
constructor
A new instance of Wheres.
Constructor Details
#initialize(engine, collection) ⇒ Wheres
Returns a new instance of Wheres.
17 18 19 20 |
# File 'lib/arel/compatibility/wheres.rb', line 17 def initialize engine, collection @engine = engine @collection = collection end |
Instance Method Details
#each ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/arel/compatibility/wheres.rb', line 22 def each to_sql = Visitors::ToSql.new @engine @collection.each { |c| c.extend(Value) c.visitor = to_sql yield c } end |