Class: EffectiveEventAddonsDatatable
- Inherits:
-
Effective::Datatable
- Object
- Effective::Datatable
- EffectiveEventAddonsDatatable
- Defined in:
- app/datatables/effective_event_addons_datatable.rb
Overview
Used on the Event Registrations Addons step
Instance Method Summary collapse
Instance Method Details
#event ⇒ Object
26 27 28 29 30 |
# File 'app/datatables/effective_event_addons_datatable.rb', line 26 def event @event ||= if attributes[:event_id] Effective::Event.find(attributes[:event_id]) end end |
#event_registration ⇒ Object
32 33 34 35 36 |
# File 'app/datatables/effective_event_addons_datatable.rb', line 32 def event_registration @event_registration ||= if attributes[:event_registration_id] EffectiveEvents.EventRegistration.find_by_id(attributes[:event_registration_id]) end end |