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

Version Path
wheels-0.1.30 app/controllers/app_configs_controller.rb
wheels-0.1.28 app/controllers/app_configs_controller.rb
wheels-0.1.27 app/controllers/app_configs_controller.rb
wheels-0.1.25 app/controllers/app_configs_controller.rb
wheels-0.1.24 app/controllers/app_configs_controller.rb
wheels-0.1.23 app/controllers/app_configs_controller.rb
wheels-0.1.22 app/controllers/app_configs_controller.rb
wheels-0.1.21 app/controllers/app_configs_controller.rb
wheels-0.1.20 app/controllers/app_configs_controller.rb
wheels-0.1.19 app/controllers/app_configs_controller.rb
wheels-0.1.18 app/controllers/app_configs_controller.rb
wheels-0.1.17 app/controllers/app_configs_controller.rb
wheels-0.1.16 app/controllers/app_configs_controller.rb
wheels-0.1.15 app/controllers/app_configs_controller.rb
wheels-0.1.14 app/controllers/app_configs_controller.rb
wheels-0.1.13 app/controllers/app_configs_controller.rb
wheels-0.1.12 app/controllers/app_configs_controller.rb
wheels-0.1.10 app/controllers/app_configs_controller.rb
wheels-0.1.9 app/controllers/app_configs_controller.rb