Add rails 4 support.
Merge pull request #1 from mcfadden/master

Add rails 4 support.