You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
495 B

  1. # frozen_string_literal: true
  2. class CustomCssController < ApplicationController
  3. skip_before_action :store_current_location
  4. skip_before_action :require_functional!
  5. skip_before_action :update_user_sign_in
  6. skip_before_action :set_session_activity
  7. skip_around_action :set_locale
  8. before_action :set_cache_headers
  9. def show
  10. expires_in 3.minutes, public: true
  11. request.session_options[:skip] = true
  12. render plain: Setting.custom_css || '', content_type: 'text/css'
  13. end
  14. end