Skip to content

Commit

Permalink
Merge branch 'routes_optional'
Browse files Browse the repository at this point in the history
  • Loading branch information
holli committed Feb 12, 2012
2 parents 8c8bd52 + cd991ad commit 505354c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/routes.rb
Expand Up @@ -39,6 +39,6 @@
:constraints => {:format => /xml/},
:format => :xml
get '/' => :render_html, :as => 'cms_html', :path => "(*cms_path)"
end
end if ComfortableMexicanSofa.config.include_default_routes

end
7 changes: 6 additions & 1 deletion lib/comfortable_mexican_sofa/configuration.rb
Expand Up @@ -21,7 +21,11 @@ class ComfortableMexicanSofa::Configuration
# When arriving at /cms-admin you may chose to redirect to arbirtary path,
# for example '/cms-admin/users'
attr_accessor :admin_route_redirect


# Normally we include default routes from https://github.com/comfy/comfortable-mexican-sofa/blob/master/config/routes.rb
# If you want to include the routes manually set this to false
attr_accessor :include_default_routes

# Not allowing irb code to be run inside page content. False by default.
attr_accessor :allow_irb

Expand Down Expand Up @@ -75,6 +79,7 @@ def initialize
@seed_data_path = nil
@admin_route_prefix = 'cms-admin'
@admin_route_redirect = ''
@include_default_routes = true
@allow_irb = false
@allowed_helpers = nil
@disabled_helpers = /eval|send|call|puts|print/
Expand Down

0 comments on commit 505354c

Please sign in to comment.