diff --git a/app/models/tag.rb b/app/models/tag.rb index 15bab718e..0247a0fa5 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -13,4 +13,8 @@ class Tag < ApplicationRecord def hashtag "#" + title end + + def cards_count + cards.count + end end diff --git a/app/views/events/filter/_tag.html.erb b/app/views/events/filter/_tag.html.erb index 551ca026f..8daafea37 100644 --- a/app/views/events/filter/_tag.html.erb +++ b/app/views/events/filter/_tag.html.erb @@ -1,7 +1,7 @@ \ No newline at end of file