/demo is not accessible on Env production
This commit is contained in:
parent
c2983e08b6
commit
2c499d5c82
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ class DemoController < ApplicationController
|
||||||
helper SmartListing::Helper
|
helper SmartListing::Helper
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
return root_path if Rails.env.production?
|
||||||
|
|
||||||
smart_listing_create :procedures,
|
smart_listing_create :procedures,
|
||||||
Procedure.where(archived: false),
|
Procedure.where(archived: false),
|
||||||
partial: "demo/list",
|
partial: "demo/list",
|
||||||
|
|
Loading…
Add table
Reference in a new issue