mintdigital/teaspoon — pull request #1 by rodreegez (2012-03-24 16:06:22+00:00)
Title: Adam/rails controller method

This does a few things:

* `Teaspoon::Client` is now the place where we ping Mint Source. This is what you create a new instance of if you are using the gem without Rails.
* `Teaspoon::Controller` defines the controller helper method for use in Rails.
* `Teaspoon::Engine` is a Rails engine that initialises a `Teaspoon::Client` for use later, and loads the helper into `ActionController::Base`.

TODO:

* Can `Teaspoon::Controller#spoon` be moved to a more generic module and also included into ActiveRecord::Base, thus allowing pinging Mint Source in after_save callbacks (i.e. easy alerting of new users, etc)?