summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMrYummy <elemental428@gmail.com>2017-06-02 19:01:50 +0200
committerMrYummy <elemental428@gmail.com>2017-06-18 13:11:36 -0400
commit4105f1c61f500c6de1b2c9764cfc8f75f5419352 (patch)
tree79c8a56de141af878d062a6713f31cf6e9ea2a18
parent1316d7ca0335dd4ff5f8b4c7bb46e961b37503f0 (diff)
fixed action caching
-rw-r--r--Gemfile2
-rw-r--r--app/controllers/statics_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index a277484..4216fe2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -15,7 +15,7 @@ gem 'activerecord-session_store'
gem 'highlight_js-rails', github: 'RedstonerServer/highlight_js-rails'
gem 'kaminari', github: 'jomo/kaminari', branch: 'patch-2' # pagination
gem 'jquery-textcomplete-rails', github: 'RedstonerServer/jquery-textcomplete-rails' # @mentions
-gem 'actionpack-action_caching'
+gem 'actionpack-action_caching', github: 'antulik/actionpack-action_caching', ref: '8c6e52c69315d67437f480da5dce4b7c8737fb32'
# Gems used only for assets and not required
# in production environments by default.
diff --git a/app/controllers/statics_controller.rb b/app/controllers/statics_controller.rb
index 70d3bd8..8ea9524 100644
--- a/app/controllers/statics_controller.rb
+++ b/app/controllers/statics_controller.rb
@@ -1,6 +1,6 @@
class StaticsController < ApplicationController
- caches_action :online, expires_in: 10.seconds
+ caches_action :online, expires_in: 10.seconds, layout: false
def index
if current_user