Clean code and workaround mongoid embedded with carrierwave

This commit is contained in:
chris2tof committed 2011-09-08 18:12:04 +08:00
1 parent a1391493a3
commit a571d1dcff
7 files changed
+55 -66

No files matched your search

@@ -32,7 +32,6 @@ class Admin::DesignsController < ApplicationController
end
def update
params[:design][:existing_task_attributes] ||= {}
@design = Design.find(params[:id])
if @design.update_attributes(params[:design])
flash[:notice] = "Successfully updated design and tasks."