method
new
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::Relation::Merger
new(relation, other)public
No documentation available.
# File activerecord/lib/active_record/relation/merger.rb, line 44
def initialize(relation, other)
if other.default_scoped? && other.klass != relation.klass
other = other.with_default_scope
end
@relation = relation
@values = other.values
@other = other
end