[feat] Use existing #happening_now method; respond to both html and json requests

This commit is contained in:
Jimmy 2021-03-17 21:02:35 +08:00 committed by CactusPuppy
parent 7fe1c597ff
commit 6523eff5ab
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
5 changed files with 5 additions and 12 deletions

View file

@ -112,11 +112,6 @@ class ConferencesController < ApplicationController
end
end
def live_events
conference = Conference.find_by(short_title: params[:conference_id])
render json: conference.find_live_events.to_json
end
private
def conference_finder_conditions