fix uninitialized constant with rails