Method: Sequel::Plugins::StaticCache::ForbidLazyLoadClassMethods#first
- Defined in:
- lib/sequel/plugins/static_cache.rb
#first(*args) ⇒ Object
Use static cache to return first arguments.
272 273 274 275 276 277 278 279 280 |
# File 'lib/sequel/plugins/static_cache.rb', line 272 def first(*args) if !defined?(yield) && args.empty? if o = @all.first _static_cache_frozen_copy(o) end else super end end |