1 class ConfigController < ApplicationController
3 require 'json/add/rails'
5 before_filter :authentication
6 before_filter :add_cookie_header # only for anonymous participants
26 :events => @participant.events?.to_s
28 respond_to do |format|
29 format.json { render :json => JSON.pretty_generate(config) }
30 format.xml { render :xml => config }