Sha256: 65bdc5479a41352a1aaf729acc1459a6d951e0de89577c1761cbec87440a3198
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 Bytes
Contents
module ActiveRecord::Querying delegate :with, to: :all def from_cte(name, expression) table = Arel::Table.new(name) cte_proxy = CTEProxy.new(name, self) relation = ActiveRecord::Relation.new cte_proxy, cte_proxy.arel_table relation.with name => expression end end
Version data entries
3 entries across 3 versions & 1 rubygems