lib/scrivito/class_collection.rb in scrivito_sdk-1.1.1 vs lib/scrivito/class_collection.rb in scrivito_sdk-1.2.0.rc1
- old
+ new
@@ -5,10 +5,10 @@
#
class ClassCollection
include Enumerable
def initialize(classes)
- @classes = classes
+ @classes = classes.compact.uniq
end
#
# @!method each
# Iterates over the classes.