Update Rails 3.0.9 -> 3.2.3.

This commit is contained in:
Roland Jesse 2012-04-18 23:30:00 +02:00
parent 564bb8ebf8
commit a1b11d20c1
43 changed files with 283 additions and 22440 deletions

View file

@ -2,12 +2,21 @@ require File.expand_path('../boot', __FILE__)
require 'rails/all'
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
if defined?(Bundler)
# To precompile assets before deploying to production, use this line:
Bundler.require *Rails.groups(:assets => %w(development test))
# To get assets lazily compiled in production, use this line:
# Bundler.require(:default, :assets, Rails.env)
end
module ContactORama
class Application < Rails::Application
# Enable the asset pipeline
config.assets.enabled = true
# Version of the assets, change this to expire all assets
config.assets.version = '1.0'
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.

View file

@ -22,5 +22,12 @@ ContactORama::Application.configure do
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
config.action_mailer.default_url_options = { :host => "contact-o-rama.de" }
# do not compress assets
config.assets.compress = false
# Expands the lines which load the assets
config.assets.debug = true
end

View file

@ -48,4 +48,13 @@ ContactORama::Application.configure do
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
# Compress JavaScripts and CSS
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Generate digests for assets URLs
config.assets.digest = true
end

View file

@ -32,4 +32,8 @@ ContactORama::Application.configure do
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
end