class Cms::ApplicationController < ApplicationController include Cms::Authentication::Controller include Cms::ErrorHandling helper :all # include all helpers, all the time helper Cms::ApplicationHelper helper Cms::FormTagHelper include Cms::PathHelper helper Cms::PathHelper include Cms::PageHelper helper Cms::PageHelper helper Cms::MenuHelper protected def escape_javascript(javascript) (javascript || '').gsub('\\','\0\0').gsub('