提交 9ff5fded 编写于 作者: J Jon Leighton

Remove unused methods

上级 01838636
......@@ -266,9 +266,6 @@ def through_conditions
[Array.wrap(options[:conditions])]
end
def through_reflection_primary_key_name
end
def source_reflection
nil
end
......@@ -489,14 +486,6 @@ def check_validity!
check_validity_of_inverse!
end
def through_reflection_primary_key
through_reflection.belongs_to? ? through_reflection.klass.primary_key : through_reflection.primary_key_name
end
def through_reflection_primary_key_name
through_reflection.primary_key_name if through_reflection.belongs_to?
end
private
def derive_class_name
# get the class_name of the belongs_to association of the through reflection
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册