Added support for Rails4.
Merge pull request #1 from hpathan/master

Add support for Rails4.