Allows usage under Rails 3 as well.