has_many :active_events, :through => :event_users,
:class_name => "Event",
:source => :event,
:conditions => ['event_users.active = ?',true]
has_many :active_events, through: :event_users,
class_name: 'Event',
source: :event,
-> { where event_users: { active: true } }