Method: ActionJabber::Base.route!
- Defined in:
- lib/actionjabber.rb
.route!(request) ⇒ Object
Called by the backend to route a request and return a response. Calling this manually is not recommended.
11 12 13 14 15 16 17 18 19 |
# File 'lib/actionjabber.rb', line 11 def route!(request) @@request = request @@routes.each do |route| if route.first == request.path return route.last.call break end end end |