Fix bug route /demo in production : Error 500 on redirect_to

This commit is contained in:
Xavier J 2016-05-25 14:13:04 +02:00
parent 6005dccc2b
commit 95bb773275

View file

@ -3,7 +3,7 @@ class DemoController < ApplicationController
helper SmartListing::Helper helper SmartListing::Helper
def index def index
return root_path if Rails.env.production? return redirect_to root_path if Rails.env.production?
smart_listing_create :procedures, smart_listing_create :procedures,
Procedure.where(archived: false), Procedure.where(archived: false),