From fdb12ae23f298a3606290a3d52c23e98c8caaa0a Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 24 Sep 2015 15:06:55 +0800 Subject: [PATCH] small test for nccu-news --- app/controllers/admin/news_admins_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/news_admins_controller.rb b/app/controllers/admin/news_admins_controller.rb index 0e83de1..a09f860 100644 --- a/app/controllers/admin/news_admins_controller.rb +++ b/app/controllers/admin/news_admins_controller.rb @@ -29,7 +29,7 @@ class Admin::NewsAdminsController < OrbitAdminController def update @unit = Unit.find_by(:uid => params[:id].split("-").last) rescue nil - @unit.update_attributes(unit_params) if !@unit.nil? + @unit.update_attributes(unit_params) #if !@unit.nil? redirect_to admin_news_admins_path end