the admin path is not used anymore (use Locomotive.mounted_on instead)
This commit is contained in:
parent
da8309c4b1
commit
ca380de115
|
@ -6,8 +6,8 @@ module Locomotive
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def render_locomotive_page
|
def render_locomotive_page
|
||||||
if request.fullpath =~ /^\/admin\//
|
if request.fullpath =~ /^\/#{Locomotive.mounted_on}\//
|
||||||
render :template => '/locomotive/errors/404', :layout => '/admin/layouts/not_logged_in', :status => :not_found
|
render :template => '/locomotive/errors/404', :layout => '/locomotive/layouts/not_logged_in', :status => :not_found
|
||||||
else
|
else
|
||||||
@page = locomotive_page
|
@page = locomotive_page
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue