This project demonstrates how to define and run custom callbacks on normal ruby objects with ActiveSupport::Callbacks
Ruby
Latest commit 7a0c555 Mar 20, 2012 @jch initial commit
Permalink
Failed to load latest commit information.
Gemfile initial commit Mar 19, 2012
Gemfile.lock initial commit Mar 19, 2012
README.md initial commit Mar 19, 2012
example.html initial commit Mar 19, 2012
example.rb initial commit Mar 19, 2012

README.md

ActiveSupport Callback Tutorial

This project demonstrates how to define and run custom callbacks on normal ruby objects with ActiveSupport::Callbacks.

For a longer explanation, check out this blog post.

To run the examples, run the following:

git clone https://github.com/jch/as_callback_tutorial
bundle
bundle exec ruby example.rb

The documented source is available in example.html.