allow officers to be created without a poll

This commit is contained in:
rgarcia
2016-09-25 10:21:58 +02:00
parent 04c58135ee
commit e2a0b051e9
4 changed files with 15 additions and 13 deletions

View File

@@ -22,12 +22,12 @@ class Admin::Poll::OfficersController < Admin::BaseController
@officer.user_id = params[:user_id]
@officer.save
redirect_to admin_poll_officers_path
redirect_to admin_officers_path
end
def destroy
@officer.destroy
redirect_to admin_poll_officers_path
redirect_to admin_officers_path
end
def show