diff config/application.rb @ 147:812711965af1

Added support for disabling supported web server without changing Gemfile.
author Edho Arief <edho@myconan.net>
date Sun, 18 Nov 2012 22:57:36 +0700
parents 39bfe2a24bf9
children 2b5ff3dea35c
line wrap: on
line diff
--- a/config/application.rb	Sun Nov 18 00:48:32 2012 +0700
+++ b/config/application.rb	Sun Nov 18 22:57:36 2012 +0700
@@ -1,6 +1,5 @@
 require File.expand_path('../boot', __FILE__)
 
-# Pick the frameworks you want:
 require "active_record/railtie"
 require "action_controller/railtie"
 # require "action_mailer/railtie"
@@ -8,9 +7,14 @@
 require "sprockets/railtie"
 # require "rails/test_unit/railtie"
 
+require File.expand_path('../init_config', __FILE__)
+require File.expand_path('../local_config', __FILE__)
+require File.expand_path('../default_config', __FILE__)
+
+# Pick the frameworks you want:
 if defined?(Bundler)
   # If you precompile assets before deploying to production, use this line
-  Bundler.require(*Rails.groups(:assets => %w(development test)))
+  Bundler.require(*CONFIG['bundler_groups'])
   # If you want your assets lazily compiled in production, use this line
   # Bundler.require(:default, :assets, Rails.env)
 end