Module: ActiveRecordExtended::Patch::RelationPatch::ArelBuildPatch

Defined in:
lib/active_record_extended/patch/relation_patch.rb

Instance Method Summary collapse

Instance Method Details

#build_arel(*aliases) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/active_record_extended/patch/relation_patch.rb', line 53

def build_arel(*aliases)
  super.tap do |arel|
    build_windows(arel) if window_values?
    build_unions(arel)  if union_values?
    build_with(arel)    if with_values?
  end
end