mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00:00
This is the way AMS detects arrays, and is more robust than checking is_a? for whitelisted classes. For example, this works for ActiveRecord::AssociationRelation which the current logic does not handle.