fix compatability issue with rails 4. thanks @johnknott for the patch.