lib/fiona7/assert.rb in infopark_fiona7-0.71.1.12 vs lib/fiona7/assert.rb in infopark_fiona7-1.1.0.0.0

- old
+ new

@@ -10,8 +10,12 @@ end def success(condition, message) raise Scrivito::ScrivitoError, message unless condition end + + def exists(condition, message) + raise Scrivito::ResourceNotFound, message unless condition + end end end end