diff options
author | Mark Longair <mhl@pobox.com> | 2013-09-30 09:01:50 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-09-30 10:34:20 +0100 |
commit | bd81b21cad716899312e73c0129a09d54154a5a7 (patch) | |
tree | 183f05955b8d928f9658be58fdfee8617c36ce50 /config/application.rb | |
parent | 7f915bf9153cac94ed2f17fee7e7ea2ee9edce8f (diff) |
Beginning of switch to using the asset pipeline
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 92fd30685..5ce58b588 100644 --- a/config/application.rb +++ b/config/application.rb @@ -6,7 +6,7 @@ require File.dirname(__FILE__) + '/../lib/configuration' # 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) +Bundler.require(:default, :assets, Rails.env) if defined?(Bundler) module Alaveteli class Application < Rails::Application @@ -71,5 +71,15 @@ module Alaveteli # Insert a bit of middleware code to prevent uneeded cookie setting. require "#{Rails.root}/lib/whatdotheyknow/strip_empty_sessions" config.middleware.insert_before ActionDispatch::Session::CookieStore, WhatDoTheyKnow::StripEmptySessions, :key => '_wdtk_cookie_session', :path => "/", :httponly => true + + # Enable the asset pipeline + config.assets.enabled = true + + # Version of your assets, change this if you want to expire all your assets + config.assets.version = '1.0' + + # Change the path that assets are served from + # config.assets.prefix = "/assets" + end end |