Class: AppConfigsController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/app_configs_controller.rb

Instance Method Summary collapse

Instance Method Details

#cssObject



6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/app_configs_controller.rb', line 6

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