Allow admin routes to be disabled.
Doug Puchalski
committed May 11, 2011
commit fde8289ff0a9530274e13035ac07ec8bf1b529e1
Showing 2
changed files with
2 additions
and 1 deletions
config/initializers/comfortable_mexican_sofa.rb
+1
-0
| @@ | @@ -8,6 +8,7 @@ ComfortableMexicanSofa.configure do |config| |
| # Default url to access admin area is http://yourhost/cms-admin/ | |
| # You can change 'cms-admin' to 'admin', for example. | |
| + | # Set to 'nil' to disable admin entirely |
| # config.admin_route_prefix = 'cms-admin' | |
| # By default Cms content is served directly from the root. Change this setting | |
config/routes.rb
+1
-1
| @@ | @@ -26,7 +26,7 @@ Rails.application.routes.draw do |
| put :revert, :on => :member | |
| end | |
| end | |
| - | end |
| + | end unless ComfortableMexicanSofa.config.admin_route_prefix.nil? |
| scope :controller => :cms_content do | |
| prefix = ComfortableMexicanSofa.config.content_route_prefix | |