Sha256: 1a7908bf989e3ecce15f215a042d0aa4661283938f3456e48725484ba85af91c

Contents?: true

Size: 550 Bytes

Versions: 16

Compression:

Stored size: 550 Bytes

Contents

# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  protect_from_forgery # See ActionController::RequestForgeryProtection for details

  # Scrub sensitive parameters from your log
  # filter_parameter_logging :password
  before_filter :load_company

  def load_company
    @company = Company.first
    Cms.set_context @company, self
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
liquid_cms-0.2.2.0 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.1.1 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.1.0 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.13 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.12 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.11 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.10 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.9 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.8 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.7 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.6 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.5 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.4 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.3 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0.2 test/rails_app/app/controllers/application_controller.rb
liquid_cms-0.2.0 test/rails_app/app/controllers/application_controller.rb