Allow railites >= 3.1

- allows use with Rails 4