PERF: avoid preloading json in cases where it is not needed

(uploads / avatars / non GET requests)
This commit is contained in:
Sam
2015-05-20 17:12:16 +10:00
parent 45bdd23689
commit e5888cf090
16 changed files with 22 additions and 16 deletions

View File

@ -1,5 +1,5 @@
class SiteCustomizationsController < ApplicationController
skip_before_filter :check_xhr, :redirect_to_login_if_required
skip_before_filter :preload_json, :check_xhr, :redirect_to_login_if_required
def show
expires_in 1.year, public: true