lib/roda/endpoints/repository.rb in roda-endpoints-0.3.3 vs lib/roda/endpoints/repository.rb in roda-endpoints-0.3.4
- old
+ new
@@ -16,10 +16,10 @@
root.order(Sequel.desc(:updated_at)).first&.updated_at
end
# @param [Integer] id
# @return [ROM::Struct]
- def fetch(id)
+ def find(id)
if id.to_i < 1
raise ArgumentError,
"#{self.class}#fetch: invalid id provided: #{id.inspect}"
end
root.fetch(id.to_i)