mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 13:03:43 +01:00
21 lines
429 B
Ruby
21 lines
429 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CustomCssController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
|
before_action :set_user_roles
|
|
|
|
def show
|
|
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
|
|
|
|
def set_user_roles
|
|
@user_roles = UserRole.providing_styles
|
|
end
|
|
end
|