Class: AssetsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/assets_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_workspace, #login_button, #redirect_to_main_organization!, #redirect_to_usage, #should_choose_organization?, #should_redirect_to_main_organization?, #validate_accessible!, #validate_active_organization!

Methods included from Mumuki::Laboratory::Controllers::EmbeddedMode

#embedded_mode?, #enable_embedded_rendering, #standalone_mode?

Methods included from Mumuki::Laboratory::Controllers::DynamicErrors

#bad_record, #blocked_forum, #disabled, #disabled_organization, #forbidden, #gone, #internal_server_error, #not_found, #render_error, #unauthorized, #unprepared_organization

Methods included from Mumuki::Laboratory::Controllers::Notifications

#has_notifications?, #notifications_count, #user_notifications_path

Methods included from Mumuki::Laboratory::Controllers::Disabling

#ensure_user_enabled!

Methods included from Mumuki::Laboratory::Controllers::Authorization

#authorization_slug, #authorize_if_private!

Methods included from Mumuki::Laboratory::Controllers::CurrentOrganization

#organization_name, #set_current_organization!, #visit_organization!

Instance Method Details

#extension_javascriptObject



12
13
14
# File 'app/controllers/assets_controller.rb', line 12

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

#theme_stylesheetObject



8
9
10
# File 'app/controllers/assets_controller.rb', line 8

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