support rails 4
Merge pull request #1 from wilg/master

support rails 4