Module: ActiveRecordExtended::RelationPatch::ArelBuildPatch

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

Instance Method Summary collapse

Instance Method Details

#build_arel(*aliases) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/active_record_extended/active_record/relation_patch.rb', line 37

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