Update Admin user datatables to use AJAX
This commit is contained in:
parent
600e394cf8
commit
64ceaf50f4
6 changed files with 290 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue