lib/kamerling/repo.rb in kamerling-0.0.1 vs lib/kamerling/repo.rb in kamerling-0.0.2
- old
+ new
@@ -12,10 +12,10 @@
warn_off { source.where(uuid: object.uuid).update hash }
end
def [] uuid
hash = warn_off { source[uuid: uuid] }
- raise NotFound, "#{klass} with UUID #{uuid}" unless hash
+ fail NotFound, "#{klass} with UUID #{uuid}" unless hash
klass.from_h hash
end
def all
source.all.map { |hash| klass.from_h hash }