Class: Comfy::Cms::AssetsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/comfy/cms/assets_controller.rb

Instance Method Summary collapse

Instance Method Details

#render_cssObject

[View source]

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

def render_css
  render body: @cms_layout.css, content_type: "text/css"
end

#render_jsObject

[View source]

16
17
18
# File 'app/controllers/comfy/cms/assets_controller.rb', line 16

def render_js
  render body: @cms_layout.js, content_type: "application/javascript"
end