fixed a deprecated method issue with rails 4.1.x