AR::Relation#all has been deprecated in AR 4.0.

Make sure current_model can't be to_a'ed (thus ruling out AR::Relation and guessing this to be normal AR::Base subclass).