Sha256: f46150fd590a89990bb9c40c74da3a80a84d771d8e76d001e8a85bc57cc29d92
Contents?: true
Size: 577 Bytes
Versions: 30
Compression:
Stored size: 577 Bytes
Contents
class CmsAdmin::BaseController < ActionController::Base protect_from_forgery # Authentication module must have #authenticate method include ComfortableMexicanSofa.config.authentication.to_s.constantize before_filter :authenticate, :load_admin_cms_site layout 'cms_admin' protected def load_admin_cms_site @cms_site = CmsSite.find_by_hostname!(request.host.downcase) rescue ActiveRecord::RecordNotFound flash[:error] = 'No Site defined for this hostname. Create it now.' redirect_to new_cms_admin_site_path end end
Version data entries
30 entries across 30 versions & 1 rubygems