Fixed initialization callbacks for latest Rails 4.1. Fixes #39.