Revert "Speed up json generation"

This reverts commit 6171e484cc.
This commit is contained in:
Petko Bordjukov 2024-09-13 23:09:16 +03:00
parent 6171e484cc
commit 7a64633ac0
1 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,6 @@ class Api::EventsController < Api::ApplicationController
def halfnarp_friendly def halfnarp_friendly
@events = current_conference.events.joins(:proposition).includes(:track, :event_type).where.not(propositions: {status: :rejected}) @events = current_conference.events.joins(:proposition).includes(:track, :event_type).where.not(propositions: {status: :rejected})
render json: JSON.dump(@events.to_json(include: [:track, :event_type])) render json: @events, include: [:track, :event_type]
end end
end end