fix Ruby 2 / Rails 4 (I suspect) compatibility