end if rails4? # monkey patch Bundler to support multiple lock files… # https://github.com/discourse/discourse/blob/master/Gemfile end RAILS4=1 rails s
run FAVAdb::Application else use Rails::Rack::LogTailer use Rails::Rack::Static run ActionController::Dispatcher.new end # script/server ! #!/usr/bin/env ruby puts "Booting Rails 2..." require File.dirname(__FILE__) + '/../config/boot2' require 'commands/server'
FAVAdb::Application.routes.draw(&block) else ActionController::Routing::Routes.draw(&block) end end def configure(&block) if rails3? FAVAdb::Application.configure(&block) else yield end end