mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-28 07:50:00 -05:00
19 lines
541 B
Ruby
19 lines
541 B
Ruby
class Admin::SupportersController < ApplicationController
|
|
before_filter :verify_organizer
|
|
layout "admin"
|
|
|
|
def index
|
|
respond_to do |format|
|
|
format.html
|
|
format.json { render json: DatatableSupporters.new(@conference.supporter_registrations, view_context) }
|
|
end
|
|
end
|
|
|
|
def create
|
|
params[:supporter_registration][:conference_id] = @conference.id
|
|
supporter = SupporterRegistration.create!(params[:supporter_registration])
|
|
flash[:notice] = "Supporter added"
|
|
render :json => {"status" => "ok"}
|
|
end
|
|
end
|