small test for nccu-news

This commit is contained in:
Harry Bomrah 2015-09-24 15:06:55 +08:00
parent a220e6e910
commit fdb12ae23f
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Admin::NewsAdminsController < OrbitAdminController
def update def update
@unit = Unit.find_by(:uid => params[:id].split("-").last) rescue nil @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 redirect_to admin_news_admins_path
end end