Updated to work with rails 4.0
Merge pull request #3 from jasoncypret/master

Updated to work with rails 4.0