Rails - Check if an Object is ActiveRecord or not
You can check with:
array.any? { |obj| obj.is_a?(ActiveRecord::Base) }
You can check
object.is_a?(ActiveRecord::Base)
You can check with:
array.any? { |obj| obj.is_a?(ActiveRecord::Base) }
You can check
object.is_a?(ActiveRecord::Base)