Allow use with Rails 4

1.3.1 added a dependency on Rails 3 specifically, even though it works with Rails 4 and incorporates some pull requests (e.g. #234) specifically to address Rails 4 issues. This pull request allows Rails 4 as well.