Remove the require call and prepend with :: the Rails::Generators::Base .