diff --git a/app/controllers/admin/supporters_controller.rb b/app/controllers/admin/supporters_controller.rb deleted file mode 100644 index 62a1b5a9..00000000 --- a/app/controllers/admin/supporters_controller.rb +++ /dev/null @@ -1,19 +0,0 @@ -module Admin - class SupportersController < Admin::BaseController - load_and_authorize_resource :conference, find_by: :short_title - load_and_authorize_resource through: :conference - - 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 - SupporterRegistration.create!(params[:supporter_registration]) - redirect_to(admin_conference_supporters_path(conference_id: @conference.short_title), notice: 'Supporter added') - end - end -end diff --git a/app/helpers/registration_helper.rb b/app/helpers/registration_helper.rb deleted file mode 100644 index 824ee1bb..00000000 --- a/app/helpers/registration_helper.rb +++ /dev/null @@ -1,14 +0,0 @@ -module RegistrationHelper - def generate_supporter_level_js(conference) - str = '' - conference.supporter_levels.map do |t| - next if t.url.empty? - - str += "if ($('#registration_supporter_registration_attributes_supporter_level_id option:selected').text() == '#{t.title}') {\n" - str += "console.log('#{t.title}');\n" - str += "str = 'If you have a confirmation or registration code, enter it here. Otherwise, you can purchase a #{t.title} ticket here, if you need to.';\n" - str += "}\n\n" - end.join("\n") - str - end -end