Class: AssetsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#login_button, #redirect_to_main_organization!, #should_choose_organization?, #should_redirect_to_main_organization?, #validate_accessible!

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

#forbidden, #gone, #internal_server_error, #not_found, #unauthorized

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

#has_notifications?, #notifications_count, #user_notifications_path

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

#authorization_slug, #authorize_if_private!, #from_sessions?

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

#organization_name, #set_current_organization!, #visit_organization!

Instance Method Details

#extension_javascriptObject



10
11
12
# File 'app/controllers/assets_controller.rb', line 10

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

#theme_stylesheetObject



6
7
8
# File 'app/controllers/assets_controller.rb', line 6

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