Merge pull request #16 from ancorgs/master

Fixing the json generated by admin/conference/x/events
This commit is contained in:
Henne Vogelsang 2013-07-11 05:32:28 -07:00
commit 7e43a00098

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