Class: RackAmfController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- RackAmfController
- Defined in:
- lib/rack/amf/rails/rack_amf_controller.rb
Instance Method Summary collapse
Instance Method Details
#handle ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/rack/amf/rails/rack_amf_controller.rb', line 2 def handle if request.env['rack-amf.request'] RAILS_DEFAULT_LOGGER.info "[rack-amf] Handle request" request.env['rack-amf.response'].each_method_call do |method, args| handle_call method, args end else render :text => '<html><body>Rack::AMF Gateway</body></html>' end end |