Class: Jbuilder::EnumerableCompat

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/jbuilder/collection_renderer.rb

Instance Method Summary collapse

Instance Method Details

#size(*args, &block) ⇒ Object

Rails 6.1 requires this.



112
113
114
# File 'lib/jbuilder/collection_renderer.rb', line 112

def size(*args, &block)
  __getobj__.count(*args, &block)
end