Move events index datatable row to a partial

- clean up columns
- tag unregistered submitters & speakers
- implement caching
This commit is contained in:
James Mason 2018-02-23 00:00:25 -08:00
parent 0d4c9e32cf
commit a2ed9c0074
7 changed files with 84 additions and 54 deletions

View file

@ -2,6 +2,6 @@ class EventUser < ApplicationRecord
# TODO: Do we need these roles?
ROLES = [%w[Speaker speaker], %w[Submitter submitter], %w[Moderator moderator]]
belongs_to :event
belongs_to :event, touch: true
belongs_to :user
end