Sha256: 16ad25997da5eaf9850f4c7357eee7865ffb887c82ead81eeea62b8425da36b8
Contents?: true
Size: 628 Bytes
Versions: 5
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true module Arel module Compatibility # :nodoc: class Wheres # :nodoc: include Enumerable module Value # :nodoc: attr_accessor :visitor def value visitor.accept self end def name super.to_sym end end def initialize engine, collection @engine = engine @collection = collection end def each to_sql = Visitors::ToSql.new @engine @collection.each { |c| c.extend(Value) c.visitor = to_sql yield c } end end end end
Version data entries
5 entries across 5 versions & 3 rubygems