mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-08 07:33:41 -04:00
19 lines
604 B
Ruby
19 lines
604 B
Ruby
module Admin
|
|
class SupporterLevelsController < ApplicationController
|
|
before_filter :verify_organizer
|
|
|
|
def show
|
|
render :supporter_levels
|
|
end
|
|
|
|
def update
|
|
begin
|
|
@conference.update_attributes!(params[:conference])
|
|
redirect_to(admin_conference_supporter_levels_path(conference_id: @conference.short_title), notice: 'Supporter levels were successfully updated.')
|
|
rescue => e
|
|
redirect_to(admin_conference_supporter_levels_path(conference_id: @conference.short_title), alert: "Supporter levels update failed: #{e.message}")
|
|
end
|
|
end
|
|
end
|
|
end
|