fix for Rails4
Merge pull request #4 from tazyamah/develop

fix for Rails4