Class: EffectiveEventAddonsDatatable

Inherits:
Effective::Datatable
  • Object
show all
Defined in:
app/datatables/effective_event_addons_datatable.rb

Overview

Used on the Event Registrations Addons step

Instance Method Summary collapse

Instance Method Details

#eventObject



42
43
44
45
46
# File 'app/datatables/effective_event_addons_datatable.rb', line 42

def event
  @event ||= if attributes[:event_id]
    Effective::Event.find_by_id(attributes[:event_id])
  end
end

#event_registrationObject



48
49
50
51
52
# File 'app/datatables/effective_event_addons_datatable.rb', line 48

def event_registration
  @event_registration ||= if attributes[:event_registration_id]
    EffectiveEvents.EventRegistration.find_by_id(attributes[:event_registration_id])
  end
end