Class: ActionFramework::ControllerSupervisor
- Inherits:
-
Object
- Object
- ActionFramework::ControllerSupervisor
- Defined in:
- lib/actionframework/controller_supervisor.rb
Instance Method Summary collapse
Instance Method Details
#run(execute_cmd, env, req, res, url) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/actionframework/controller_supervisor.rb', line 3 def run(execute_cmd,env,req,res,url) classname, methodname = execute_cmd.split("#")[0], execute_cmd.split("#")[1] controller = Object.const_get(classname).new(env,req,res,url) object_from_run_before = controller.execute_run_before return object_from_run_before unless object_from_run_before.nil? return controller.send(methodname); end |