rails/rails — pull request #4759 by cheerfulstoic (2012-01-30 15:26:10+00:00)
Title: Add all_exist? class method method for models and relations

I've found a need a number of times in my ActiveRecording to find out if a set of IDs exist or to find if a certain set of objects exist in a scope. Hopefully the rails team also finds this useful ;)

Should be a pretty straightforward method. Tests included. Let me know if you have any questions.