comparison config/application.rb @ 331:7c7b7906ebd9

Some more coding style.
author edogawaconan <me@myconan.net>
date Mon, 14 Apr 2014 17:21:16 +0900
parents 612bc7c32324
children 56382cb104dd
comparison
equal deleted inserted replaced
330:96631607785f 331:7c7b7906ebd9
1 require File.expand_path('../boot', __FILE__) 1 require File.expand_path("../boot", __FILE__)
2 2
3 require "active_record/railtie" 3 require "active_record/railtie"
4 require "action_controller/railtie" 4 require "action_controller/railtie"
5 # require "action_mailer/railtie" 5 # require "action_mailer/railtie"
6 # require "active_resource/railtie" 6 # require "active_resource/railtie"
7 require "sprockets/railtie" 7 require "sprockets/railtie"
8 require "rails/test_unit/railtie" 8 require "rails/test_unit/railtie"
9 9
10 require File.expand_path('../init_config', __FILE__) 10 require File.expand_path("../init_config", __FILE__)
11 require File.expand_path('../local_config', __FILE__) 11 require File.expand_path("../local_config", __FILE__)
12 require File.expand_path('../default_config', __FILE__) 12 require File.expand_path("../default_config", __FILE__)
13 13
14 # Pick the frameworks you want: 14 # Pick the frameworks you want:
15 if defined?(Bundler) 15 if defined?(Bundler)
16 # If you precompile assets before deploying to production, use this line 16 # If you precompile assets before deploying to production, use this line
17 Bundler.require(*CONFIG['bundler_groups']) 17 Bundler.require(*CONFIG["bundler_groups"])
18 # 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
19 # Bundler.require(:default, :assets, Rails.env) 19 # Bundler.require(:default, :assets, Rails.env)
20 end 20 end
21 21
22 module Zeropaste 22 module Zeropaste
35 # Activate observers that should always be running. 35 # Activate observers that should always be running.
36 # config.active_record.observers = :cacher, :garbage_collector, :forum_observer 36 # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
37 37
38 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. 38 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
39 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. 39 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
40 # config.time_zone = 'Central Time (US & Canada)' 40 # config.time_zone = "Central Time (US & Canada)"
41 41
42 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 42 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
43 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] 43 # config.i18n.load_path += Dir[Rails.root.join("my", "locales", "*.{rb,yml}").to_s]
44 # config.i18n.default_locale = :de 44 # config.i18n.default_locale = :de
45 45
46 # Configure the default encoding used in templates for Ruby 1.9. 46 # Configure the default encoding used in templates for Ruby 1.9.
47 config.encoding = "utf-8" 47 config.encoding = "utf-8"
48 48
59 59
60 # Enable the asset pipeline 60 # Enable the asset pipeline
61 config.assets.enabled = true 61 config.assets.enabled = true
62 62
63 # Version of your assets, change this if you want to expire all your assets 63 # Version of your assets, change this if you want to expire all your assets
64 config.assets.version = '1.0' 64 config.assets.version = "1.0"
65 65
66 # No need to initialize application when precompiling assets 66 # No need to initialize application when precompiling assets
67 config.assets.initialize_on_precompile = false 67 config.assets.initialize_on_precompile = false
68 68
69 if ENV["ZP_MEMCACHE"] 69 if ENV["ZP_MEMCACHE"]