Sha256: d77e6b8220a826632880cf5e7112feb7695739b5b81c829bd7d7ea9f3e4173a8

Contents?: true

Size: 519 Bytes

Versions: 22

Compression:

Stored size: 519 Bytes

Contents

class AssetsController < ApplicationController

  protect_from_forgery except: [:theme_stylesheet, :extension_javascript]
  skip_before_action :authorize_if_private!
  skip_before_action :validate_user_profile!
  skip_before_action :validate_active_organization!

  def theme_stylesheet
    render inline: Organization.current.theme_stylesheet.to_s, content_type: 'text/css'
  end

  def extension_javascript
    render inline: Organization.current.extension_javascript.to_s, content_type: 'text/javascript'
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mumuki-laboratory-7.7.2 app/controllers/assets_controller.rb
mumuki-laboratory-7.7.1 app/controllers/assets_controller.rb