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

I don’t believe PluginNewGenerator existed prior to 3.1