Update Admin user datatables to use AJAX

This commit is contained in:
James Mason 2018-06-18 10:04:17 -07:00
parent 5ffe59fa4b
commit e086ab7817
No known key found for this signature in database
GPG key ID: 1B3951886C449023
6 changed files with 290 additions and 53 deletions

View file

@ -220,6 +220,10 @@ class User < ApplicationRecord
end
end
def attended_count
attributes['attended_count'] || registrations.where(attended: true).count
end
def confirmed?
!confirmed_at.nil?
end