14 lines
455 B
Ruby
14 lines
455 B
Ruby
class Api::EventsController < Api::ApplicationController
|
|
include ::CurrentConferenceAssigning
|
|
include ::PublicApiExposing
|
|
before_action :require_current_conference!
|
|
|
|
def index
|
|
@events = current_conference.events.approved.joins(:proposition).includes(:participations)
|
|
end
|
|
|
|
def halfnarp_friendly
|
|
@events = current_conference.events.joins(:proposition).includes(:track, :event_type).where.not(propositions: {status: :rejected})
|
|
end
|
|
end
|