提交 42173d37 编写于 作者: S Shinya Maeda

Use AR releation "count" method

上级 d48f2460
......@@ -31,7 +31,7 @@ class Release < ActiveRecord::Base
end
def assets_count
links&.size.to_i + sources&.size.to_i
links.count + sources.count
end
def sources
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册