attempt to fix for rails 4
Merge pull request #1 from nickelser/patch-1

attempt to fix for rails 4