Fixed generator to work with rails >=4.0.4