Update railties dependency to > 3.1

Depending on ~> 3.1 prevents this gem from being used with Rails 4 for
no good reason.
Merge branch 'update_railties_dependency'