lib/acfs/resource/query_methods.rb in acfs-1.7.0 vs lib/acfs/resource/query_methods.rb in acfs-2.0.0

- old
+ new

@@ -54,14 +54,14 @@ # was fetched successfully. # @yieldparam resource [Collection] Collection with fetched resources. # # @return [Collection] Collection of requested resources. # - def find(id_or_ids, **opts, &block) + def find(id_or_ids, **opts, &) if id_or_ids.respond_to? :each - find_multiple id_or_ids, opts, &block + find_multiple(id_or_ids, opts, &) else - find_single id_or_ids, opts, &block + find_single(id_or_ids, opts, &) end end # @api public #