Skip to content

Commit 5eba779

Browse files
committed
sidestep the issue of YARD for variadic tuple type returned from normalize_collection (thanks @ArtOfCode-)
1 parent 29858b8 commit 5eba779

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/namespaced_env_cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def fetch_collection(name, **opts, &block)
138138

139139
# Normalizes a given ActiveRecord collection for use with the cache
140140
# @param value [ActiveRecord::Relation] collection to normalize
141-
# @return [Array(String, *Integer)]
141+
# @return [[String, Integer, Integer, ...]]
142142
def self.normalize_collection(value)
143143
[value[0].class.to_s, *value.map(&:id)]
144144
end

0 commit comments

Comments
 (0)