This is a wrapper that enables you to write your generator using the Rails 3 syntax but still support Rails 2. Usage Just add it as a gem dependency and require "acts_as_rails3_generator" in your generator. How to run the tests bundle rake