1
0

custom_css_controller.rb 462 B

123456789101112131415161718
  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 content_type: 'text/css'
  13. end
  14. end