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