Don't use deprecated ActiveRecord::Relation#all.

This fixes the following issue, in a cleaner way than was proposed in that thread: https://github.com/josevalim/inherited_resources/issues/290