Method: Cms::PortletController#execute_handler
- Defined in:
- app/controllers/cms/portlet_controller.rb
#execute_handler ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/cms/portlet_controller.rb', line 7 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 |