Method: Sequel::Plugins::SubsetStaticCache::CachedDatasetMethods#each
- Defined in:
- lib/sequel/plugins/subset_static_cache.rb
#each(&block) ⇒ Object
Yield each of the dataset’s frozen instances to the block, without issuing a database query.
174 175 176 177 |
# File 'lib/sequel/plugins/subset_static_cache.rb', line 174 def each(&block) return super unless all = @cache[:subset_static_cache_all] all.each(&block) end |