Permalink
Browse files

adding apotomo/debugging. simply include that file in an initializer …

…or controller and get the bubbling events printed on the console.

this is WIP and will have a better usability, soon.
  • Loading branch information...
1 parent 97f262f commit 1868b75f58fe8d38e707f13271db045f16edd23b @apotonick apotonick committed Mar 12, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/apotomo/debugging.rb
@@ -0,0 +1,9 @@
+require "onfire/debugging"
+
+Apotomo::Event.class_eval do
+ include Onfire::Event::Debugging
+
+ debug do |widget, event|
+ puts "#{widget.name}: #{event}"
+ end
+end

0 comments on commit 1868b75

Please sign in to comment.