lib/roda/endpoints/repository.rb in roda-endpoints-0.3.0 vs lib/roda/endpoints/repository.rb in roda-endpoints-0.3.1

- old
+ new

@@ -11,16 +11,16 @@ root.to_a end # @return [Time] def last_modified - 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) - root.fetch(id) + root.fetch(id.to_i) end end end end