README.md in reactor-0.3.1 vs README.md in reactor-0.3.2
- old
+ new
@@ -46,10 +46,10 @@
*New in 0.3*
You can now bind any block to an event in your models like so
- subscribes_to :any_event do |event|
+ on_event :any_event do |event|
MyModel.find(event.target).do_something_about_it!
end
## Contributing