osem-fcy/app/controllers/admin/emails_controller.rb

17 lines
445 B
Ruby
Raw Normal View History

2014-08-06 21:14:00 +03:00
module Admin
class Admin::EmailsController < ApplicationController
before_filter :verify_organizer
2013-01-14 08:49:49 +01:00
2014-08-06 21:14:00 +03:00
def update
@conference.email_settings.update_attributes(params[:email_settings])
redirect_to(admin_conference_emails_path(
@conference.short_title),
notice: 'Settings have been successfully updated.')
end
2013-01-14 08:49:49 +01:00
2014-08-06 21:14:00 +03:00
def index
@settings = @conference.email_settings
end
2013-01-14 08:49:49 +01:00
end
end