提交 a4c0281d 编写于 作者: A Aaron Patterson

fix visibility of the relation construction methods

上级 8004c91e
......@@ -238,7 +238,7 @@ def raise_record_not_found_exception!(ids, result_size, expected_size) #:nodoc:
raise RecordNotFound, error
end
protected
private
def find_with_associations
join_dependency = construct_join_dependency
......@@ -290,6 +290,12 @@ def limited_ids_for(relation)
id_rows.map {|row| row[primary_key]}
end
def using_limitable_reflections?(reflections)
reflections.none? { |r| r.collection? }
end
protected
def find_with_ids(*ids)
expects_array = ids.first.kind_of?(Array)
return ids.first if expects_array && ids.first.empty?
......@@ -379,9 +385,5 @@ def find_last
end
end
end
def using_limitable_reflections?(reflections)
reflections.none? { |r| r.collection? }
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册