Class: Cms::PortletController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Cms::PortletController
- Defined in:
- app/controllers/cms/portlet_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#execute_handler ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/cms/portlet_controller.rb', line 6 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 |