use alias_method instead of alias
work with rails versions >= 3.1.x

I don’t believe PluginNewGenerator existed prior to 3.1
require rails and use superclass
Merge pull request #5 from acmetech/master

Finish what @wafcio started