Class: EffectiveEventRegistrantsDatatable
- Inherits:
-
Effective::Datatable
- Object
- Effective::Datatable
- EffectiveEventRegistrantsDatatable
- Defined in:
- app/datatables/effective_event_registrants_datatable.rb
Overview
Used on the Event Registrations tickets step
Instance Method Summary collapse
Instance Method Details
#event ⇒ Object
38 39 40 41 42 |
# File 'app/datatables/effective_event_registrants_datatable.rb', line 38 def event @event ||= if attributes[:event_id] Effective::Event.find(attributes[:event_id]) end end |
#event_registration ⇒ Object
44 45 46 47 48 |
# File 'app/datatables/effective_event_registrants_datatable.rb', line 44 def event_registration @event_registration ||= if attributes[:event_registration_id] EffectiveEvents.EventRegistration.find_by_id(attributes[:event_registration_id]) end end |