module ActiveRecord::Querying
Public Instance Methods
from_cte(name, expression)
click to toggle source
# File lib/postgres_with/active_record/querying.rb, line 4 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