mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-07 12:41:08 -05:00
Get rid of the admin layout Get rid of the navbar custom style, use bootstrap-sass variables instead Get rid of all the scaffold files
18 lines
524 B
Ruby
18 lines
524 B
Ruby
class Admin::SupportersController < ApplicationController
|
|
before_filter :verify_organizer
|
|
|
|
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
|