minimal changes to let the bbs hook in if it's present

This commit is contained in:
joshua stein 2015-04-03 13:10:44 -05:00
parent 88602f7535
commit 4fcbf8b257
2 changed files with 8 additions and 1 deletions

5
.gitignore vendored
View file

@ -30,3 +30,8 @@ config/database.yml
config/initializers/secret_token.rb
config/*.sphinx.conf
config/unicorn.conf.rb
# bbs symlinks into ../lobsters-bbs
app/controllers/bbs_controller.rb
app/views/layouts/bbs.*
public/bbs

View file

@ -117,6 +117,8 @@ Lobsters::Application.routes.draw do
get "/privacy" => "home#privacy"
get "/about" => "home#about"
get "/resettraffic" => "home#resettraffic"
if defined?(BbsController) || Rails.env.development?
get "/bbs" => "bbs#index"
end
end
end