Fixing the json generated by admin/conference/x/events

This commit is contained in:
Ancor Gonzalez Sosa 2013-07-11 13:49:50 +02:00
parent d95d8f234b
commit b54b098a19

View file

@ -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