Class: ActiveRecord::Relation::Merger

Inherits:
Object
  • Object
show all
Defined in:
lib/left_joins.rb

Instance Method Summary collapse

Instance Method Details

#mergeObject



135
136
137
138
139
# File 'lib/left_joins.rb', line 135

def merge
  values = other.left_outer_joins_values
  relation.left_outer_joins!(*values) if values.present?
  return merge_without_left_joins
end

#merge_without_left_joinsObject



134
# File 'lib/left_joins.rb', line 134

alias_method :merge_without_left_joins, :merge