- @comic = Comic.edit(params[:id], @operators)
- @comic.attributes = params[:comic]
- @comic.overwrite @operators
- respond_to do |format|
- if @comic.save
- flash[:notice] = I18n.t('flash.notice.updated', :model => Comic.model_name.human)
- format.html { redirect_to @comic }
- format.json { head :ok }
- else
- flash[:notice] = I18n.t('flash.notice.not_updated', :model => Comic.model_name.human)
- format.html { render action: "edit" }
- format.json { render json: @comic.errors, status: :unprocessable_entity }
- end
- end
+ set_edit
+ @my_model_class.fold_extend_settings params[@my_model_class.item_name]
+ @item.attributes = params[@my_model_class.item_name]
+ @item.overwrite @operators
+ render_update