config/routes.rb in rails_pages-0.0.1 vs config/routes.rb in rails_pages-0.0.2

- old
+ new

@@ -1,7 +1,9 @@ Rails.application.routes.draw do - resources :pages, - :module => :rails_pages, - :only => :show, - :format => false, - :constraints => { :id => /.+?/ } + if RailsPages.configuration.default_routes + resources :pages, + :module => :rails_pages, + :only => :show, + :format => false, + :constraints => { :id => /.+?/ } + end end