Fix bug route /demo in production : Error 500 on redirect_to
This commit is contained in:
parent
6005dccc2b
commit
95bb773275
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue