Updating how macs are stored/viewed

This commit is contained in:
2013-02-09 02:08:29 -07:00
parent 1b64a6b931
commit d156edd683
2 changed files with 3 additions and 1 deletions

View File

@@ -97,7 +97,8 @@ end
def update
#Log who updated this
@mac = Mac.find(params[:id])
@mac.user_id = params[:mac][:user_id]
@mac.assign_attributes(params[:mac])
#@mac.user_id = params[:mac][:user_id]
authorize! :update, @mac
if can? :manage, Mac then