lib/sitehub/collection.rb in sitehub-0.5.0.alpha3 vs lib/sitehub/collection.rb in sitehub-0.5.0.alpha4

- old
+ new

@@ -14,10 +14,10 @@ if name == :add && !overrides.include?(name) overrides << name alias_method :add_backup, :add send(:define_method, :add) do |id, value, *args| - raise DuplicateVersionException, UNIQUE_LABELS_MSG if self[id] + raise DuplicateVersionException, UNIQUE_LABELS_MSG if key?(id) add_backup id, value, *args end end end end