Event had its own initialize method which was not setting @popolo, this meant that code using .popolo on Events would break with an undefined method 'memberships' for nil:NilClass type error.
This removes the overridden initialize and restores the default behaviour.
Event had its own
initialize
method which was not setting@popolo
, this meant that code using.popolo
on Events would break with anundefined method 'memberships' for nil:NilClass
type error.This removes the overridden
initialize
and restores the default behaviour.Fixes the build error in https://github.com/everypolitician/everypolitician-data/pull/18542 which was caused by
Everypolitician::DataView::Terms.term_memberships
trying to accesspopolo.memberships
.