mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
5b844f5320
FIX: more robust site customizations Rewrote site customization to use distributed cache and a much cleaner css delivery mechanism
9 lines
337 B
Ruby
9 lines
337 B
Ruby
class SiteCustomizationsController < ApplicationController
|
|
skip_before_filter :check_xhr, :redirect_to_login_if_required
|
|
|
|
def show
|
|
expires_in 1.year, public: true
|
|
render text: SiteCustomization.stylesheet_contents(params[:key], params[:target] == "mobile" ? :mobile : :desktop),
|
|
content_type: "text/css"
|
|
end
|
|
end
|