Allow railties >= 3.1

- allows use with Rails 4