Enable to work with rails4
Merge pull request #50 from tkhr/rails4

Enable to work with rails4