Clean code and workaround mongoid embedded with carrierwave
This commit is contained in:
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."
|
||||
|
||||
Reference in new issue
Block a user