Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
146:601c608637e7 | 147:812711965af1 |
---|---|
1 require File.expand_path('../boot', __FILE__) | 1 require File.expand_path('../boot', __FILE__) |
2 | 2 |
3 # Pick the frameworks you want: | |
4 require "active_record/railtie" | 3 require "active_record/railtie" |
5 require "action_controller/railtie" | 4 require "action_controller/railtie" |
6 # require "action_mailer/railtie" | 5 # require "action_mailer/railtie" |
7 # require "active_resource/railtie" | 6 # require "active_resource/railtie" |
8 require "sprockets/railtie" | 7 require "sprockets/railtie" |
9 # require "rails/test_unit/railtie" | 8 # require "rails/test_unit/railtie" |
10 | 9 |
10 require File.expand_path('../init_config', __FILE__) | |
11 require File.expand_path('../local_config', __FILE__) | |
12 require File.expand_path('../default_config', __FILE__) | |
13 | |
14 # Pick the frameworks you want: | |
11 if defined?(Bundler) | 15 if defined?(Bundler) |
12 # If you precompile assets before deploying to production, use this line | 16 # If you precompile assets before deploying to production, use this line |
13 Bundler.require(*Rails.groups(:assets => %w(development test))) | 17 Bundler.require(*CONFIG['bundler_groups']) |
14 # If you want your assets lazily compiled in production, use this line | 18 # If you want your assets lazily compiled in production, use this line |
15 # Bundler.require(:default, :assets, Rails.env) | 19 # Bundler.require(:default, :assets, Rails.env) |
16 end | 20 end |
17 | 21 |
18 module Zeropaste | 22 module Zeropaste |