fix for rails 4 breaking
Merge pull request #1 from Dadits/as/rails4_fix

fix for rails 4 breaking