lib/roda/endpoints/repository.rb in roda-endpoints-0.3.2 vs lib/roda/endpoints/repository.rb in roda-endpoints-0.3.3
- old
+ new
@@ -11,10 +11,10 @@
root.to_a
end
# @return [Time]
def last_modified
- root.order(Sequel.desc(:updated_at)).first.updated_at
+ root.order(Sequel.desc(:updated_at)).first&.updated_at
end
# @param [Integer] id
# @return [ROM::Struct]
def fetch(id)