patch ActiveResource::Base only if it is older than 4.0.0