From d11b0b11e9244403d71fc67fca4356cc3d88723d Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 3 Aug 2016 09:44:05 +0200 Subject: [PATCH] Feed the Hound --- app/controllers/experiments_controller.rb | 1 - config/routes.rb | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/experiments_controller.rb b/app/controllers/experiments_controller.rb index 9e55135bf..1aff48317 100644 --- a/app/controllers/experiments_controller.rb +++ b/app/controllers/experiments_controller.rb @@ -68,7 +68,6 @@ class ExperimentsController < ApplicationController @experiment.archived = true @experiment.archived_by = current_user @experiment.archived_on = DateTime.now - if @experiment.save flash[:success] = t('experiments.archive.success_flash', experiment: @experiment.name) diff --git a/config/routes.rb b/config/routes.rb index 688df3305..cc089288c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -88,7 +88,9 @@ Rails.application.routes.draw do post 'destroy', as: :destroy # Destroy multiple entries at once end end - resources :experiments, only: [:new, :create, :edit, :update], defaults: { format: 'json' } + resources :experiments, + only: [:new, :create, :edit, :update], + defaults: { format: 'json' } member do get 'notifications' # Notifications popup for individual project in projects index get 'samples' # Samples for single project