Polls' stats migrated from Madrid's fork and sortable functions added for tables
This commit is contained in:
@@ -36,4 +36,9 @@ class Admin::StatsController < Admin::BaseController
|
||||
@users_who_have_sent_message = DirectMessage.select(:sender_id).distinct.count
|
||||
end
|
||||
|
||||
end
|
||||
def polls
|
||||
@polls = ::Poll.current
|
||||
@participants = ::Poll::Voter.where(poll: @polls)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user