summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/sourcegraph_gon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/sourcegraph_gon.rb')
-rw-r--r--app/controllers/concerns/sourcegraph_gon.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/sourcegraph_gon.rb b/app/controllers/concerns/sourcegraph_gon.rb
index ab4abd734fb..01925cf9d4d 100644
--- a/app/controllers/concerns/sourcegraph_gon.rb
+++ b/app/controllers/concerns/sourcegraph_gon.rb
@@ -4,7 +4,7 @@ module SourcegraphGon
extend ActiveSupport::Concern
included do
- before_action :push_sourcegraph_gon, unless: :json_request?
+ before_action :push_sourcegraph_gon, if: :html_request?
end
private