Sha256: 828b3469ec0d69b4399363262399e6070186287fe9e7e20bd9b1f4074f8454ab
Contents?: true
Size: 416 Bytes
Versions: 19
Compression:
Stored size: 416 Bytes
Contents
class AppConfigsController < InheritedResources::Base respond_to :html, :js respond_to :css, :only=>:css ajax_loading def css @stylesheet = AppConfig["stylesheet"] if params[:page_id] page = Page.find(params[:page_id]) @stylesheet += '\n/* Page-level styles' + page.stylesheet end respond_with @stylesheet do |format| format.css{render :layout=>'bare'} end end end
Version data entries
19 entries across 19 versions & 1 rubygems