From 9b3c927ba704ca650c89f5451e2a878309791064 Mon Sep 17 00:00:00 2001 From: manxingxing Date: Thu, 13 Jun 2013 11:05:39 +0800 Subject: [PATCH] Change flash message of dataset edit notifications for now. issue #279 A dirty solution. further action needed. --- app/controllers/dataset_edits_controller.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/dataset_edits_controller.rb b/app/controllers/dataset_edits_controller.rb index 413dc7eb..c3a75d42 100644 --- a/app/controllers/dataset_edits_controller.rb +++ b/app/controllers/dataset_edits_controller.rb @@ -22,9 +22,8 @@ def index def submit @dataset_edit.submitted = true if @dataset_edit.update_attributes(params[:dataset_edit]) - result = "Submitted to dataset edit log. " - result << @dataset_edit.notify(params).to_s - flash[:notice] = result + @dataset_edit.notify(params) + flash[:notice] = "Notifications were successfully submitted and sent, Thanks!" else flash[:error] = @dataset_edit.errors.to_sentence end