app/controllers/presentation/assets_controller.rb in presenting-2.0.3 vs app/controllers/presentation/assets_controller.rb in presenting-2.1.0

- old
+ new

@@ -1,5 +1,11 @@ class Presentation::AssetsController < ActionController::Base + # TODO: this is a hack b/c of load order in the extracted Rails 4 gems, read + # more in this pull request: https://github.com/rails/rails-observers/pull/8 + if Rails.version >= '4.0.0' + include ActionController::Caching::Pages + end + # TODO: consider packaging a minifier so we get the perfect solution: a cached, minified bundle of assets caches_page :stylesheet, :javascript def stylesheet dir = asset_path(:stylesheets)