Support rails 4
Merge pull request #2 from awakia/master

Support rails 4.0