Update Rails to 4.0.12 (resolves #46)