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

again, read_attribute is public, so just call it

上级 feb88bda
......@@ -18,7 +18,7 @@ def initialize(owner, reflection)
# SELECT query if you use #length.
def size
if has_cached_counter?
owner.send(:read_attribute, cached_counter_attribute_name)
owner.read_attribute cached_counter_attribute_name(reflection)
elsif loaded?
target.size
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册