about summary refs log tree commit diff
path: root/app/controllers/custom_css_controller.rb
blob: 0a667a6a66009c99c61a6f6b311a9309ceae4add (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class CustomCssController < ApplicationController
  skip_before_action :store_current_location
  skip_before_action :require_functional!

  before_action :set_cache_headers

  def show
    expires_in 3.minutes, public: true
    render plain: Setting.custom_css || '', content_type: 'text/css'
  end
end