class ActiveRecordExtended::QueryMethods::WithCTE::WithChain
Public Class Methods
new(scope)
click to toggle source
@param [ActiveRecord::Relation] scope
# File lib/active_record_extended/query_methods/with_cte.rb, line 66 def initialize(scope) @scope = scope @scope.cte ||= WithCTE.new(scope) end
Public Instance Methods
recursive(args)
click to toggle source
@param [Hash, WithCTE] args
# File lib/active_record_extended/query_methods/with_cte.rb, line 72 def recursive(args) @scope.tap do |scope| scope.recursive_value = true scope.cte.pipe_cte_with!(args) end end