make xray available in development only

This commit is contained in:
clemkeirua 2020-09-14 22:35:26 +02:00
parent 2c418f63a8
commit 4a760287d4

View file

@ -20,7 +20,7 @@
= Gon::Base.render_data(camel_case: true, init: true, nonce: request.content_security_policy_nonce) = Gon::Base.render_data(camel_case: true, init: true, nonce: request.content_security_policy_nonce)
- if feature_enabled?(:xray) - if Rails.env.development? && feature_enabled?(:xray)
= stylesheet_link_tag :xray = stylesheet_link_tag :xray
%body{ id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil } %body{ id: content_for(:page_id), class: browser.platform.ios? ? 'ios' : nil }
@ -40,7 +40,7 @@
- if content_for?(:footer) - if content_for?(:footer)
= content_for(:footer) = content_for(:footer)
- if feature_enabled?(:xray) - if Rails.env.development? && feature_enabled?(:xray)
= javascript_include_tag :xray = javascript_include_tag :xray
= yield :charts_js = yield :charts_js