Make Rails 4 Compatible