Sha256: e29e763b61b04e1f5baab7a747180eaa0c74aa79f23dd1b69c9fb920c246a8c3
Contents?: true
Size: 531 Bytes
Versions: 11
Compression:
Stored size: 531 Bytes
Contents
module Cms class PortletController < Cms::ApplicationController skip_before_filter :redirect_to_cms_site def execute_handler @portlet = Portlet.find(params[:id]) @portlet.controller = self method = params[:handler] if @portlet.class.superclass.method_defined?(method) or @portlet.class.private_method_defined?(method) or @portlet.class.protected_method_defined?(method) raise Cms::Errors::AccessDenied else redirect_to @portlet.send(method) end end end end
Version data entries
11 entries across 11 versions & 2 rubygems