Method: Mojito::ClassMethods#dispatch
- Defined in:
- lib/mojito/base.rb
#dispatch(request) ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/mojito/base.rb', line 71 def dispatch(request) controller = self.new request begin controller.__dispatch rescue Exception => e if controller.respond_to? :__handle_error controller.__handle_error(e) else raise e end end end |