Commit 42173d37 authored by Shinya Maeda's avatar Shinya Maeda

Use AR releation "count" method

parent d48f2460
...@@ -31,7 +31,7 @@ class Release < ActiveRecord::Base ...@@ -31,7 +31,7 @@ class Release < ActiveRecord::Base
end end
def assets_count def assets_count
links&.size.to_i + sources&.size.to_i links.count + sources.count
end end
def sources def sources
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment