Sha256: c6da7236d20cb6ad451a03d90f8fcac76470273b564044a599c7a3e65029e0ab
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
class Cms::AssetsController < Cms::BaseController before_action :load_cms_layout def render_css render :text => @cms_layout.css, :content_type => 'text/css' end def render_js render :text => @cms_layout.js, :content_type => 'text/javascript' end protected def load_cms_layout @cms_layout = @cms_site.layouts.find_by_identifier!(params[:identifier]) rescue ActiveRecord::RecordNotFound render :nothing => true, :status => 404 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.11.2 | app/controllers/cms/assets_controller.rb |
comfortable_mexican_sofa-1.11.1 | app/controllers/cms/assets_controller.rb |