the admin path is not used anymore (use Locomotive.mounted_on instead)

This commit is contained in:
Didier Lafforgue 2012-02-10 10:05:56 +01:00
parent da8309c4b1
commit ca380de115
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ module Locomotive
protected
def render_locomotive_page
if request.fullpath =~ /^\/admin\//
render :template => '/locomotive/errors/404', :layout => '/admin/layouts/not_logged_in', :status => :not_found
if request.fullpath =~ /^\/#{Locomotive.mounted_on}\//
render :template => '/locomotive/errors/404', :layout => '/locomotive/layouts/not_logged_in', :status => :not_found
else
@page = locomotive_page