module ActiveRecord::WithMerger
Public Instance Methods
merge()
click to toggle source
Calls superclass method
# File lib/activerecord/cte/core_ext.rb, line 9 def merge super merge_withs relation end
Private Instance Methods
merge_withs()
click to toggle source
# File lib/activerecord/cte/core_ext.rb, line 17 def merge_withs other_values = other.with_values.reject { |value| relation.with_values.include?(value) } relation.with!(*other_values) if other_values.any? end