Skip to content

Commit

Permalink
Change flash message of dataset edit notifications for now. issue #279
Browse files Browse the repository at this point in the history
A dirty solution. further action needed.
  • Loading branch information
manxingxing committed Aug 14, 2013
1 parent 2b2d515 commit 9b3c927
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/dataset_edits_controller.rb
Expand Up @@ -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
Expand Down

0 comments on commit 9b3c927

Please sign in to comment.