mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fixing the json generated by admin/conference/x/events
This commit is contained in:
parent
d95d8f234b
commit
b54b098a19
1 changed files with 2 additions and 1 deletions
|
|
@ -14,7 +14,8 @@ class Admin::EventsController < ApplicationController
|
|||
@event_states = @events.state_machine.states.map
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json { render :json => Event.where(:state => :confirmed) }
|
||||
# Explicity call #to_json to avoid the use of EventSerializer
|
||||
format.json { render :json => Event.where(:state => :confirmed).to_json }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue