提交 8a1c5337 编写于 作者: A Aaron Patterson

no need for self

上级 7773c324
......@@ -134,7 +134,7 @@ module Associations # :nodoc:
def clear_association_cache #:nodoc:
self.class.reflect_on_all_associations.to_a.each do |assoc|
instance_variable_set "@#{assoc.name}", nil
end if self.persisted?
end if persisted?
end
private
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册