Allow use with Rails 4