mastodon/app/controllers/custom_css_controller.rb

16 lines
324 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CustomCssController < ActionController::Base # rubocop:disable Rails/ApplicationController
def show
2019-07-17 17:14:25 +02:00
expires_in 3.minutes, public: true
render content_type: 'text/css'
end
private
def custom_css_styles
Setting.custom_css
end
helper_method :custom_css_styles
end