Module: StartupCssHelper

Included in:
ApplicationHelper, Gitlab::GonHelper
Defined in:
app/helpers/startup_css_helper.rb

Instance Method Summary collapse

Instance Method Details

#use_startup_css?Boolean

Returns:

  • (Boolean)

4
5
6
# File 'app/helpers/startup_css_helper.rb', line 4

def use_startup_css?
  (Feature.enabled?(:startup_css) || params[:startup_css] == 'true' || cookies['startup_css'] == 'true') && !Rails.env.test?
end