lib/knj/knj_controller.rb in knjrbfw-0.0.8 vs lib/knj/knj_controller.rb in knjrbfw-0.0.9
- old
+ new
@@ -1,11 +1,16 @@
#This files makes the framework able to receive calls from the Rhodes framework from RhoMobile.
class KnjController < Rho::RhoController
- #GET /Server
- def index
- render
- end
-
- def html_links
- System.open_url(@params["url"])
- end
+ #GET /Server
+ def index
+ render
+ end
+
+ def html_links
+ System.open_url(@params["url"])
+ end
+
+ def callback
+ block = $rhodes.callbacks(@params["callback_id"])
+ block.call(:params => @params)
+ end
end
\ No newline at end of file