Sha256: c2b8cd5aa99bf1e8e29d24cd8ab3274653b2b264c92a85804eefbfb42e7893a4
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
module Kaminari module Surface module PaginatableArrayExtension def limit(*_args) copy_attrs(super) end def offset(*_args) copy_attrs(super) end private def copy_attrs(target) if defined?(@_per_value) target.instance_variable_set(:@_per_value, @_per_value) end if defined?(@_surface_value) target.instance_variable_set(:@_surface_value, @_surface_value) end target end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaminari-surface-0.1.0 | lib/kaminari/surface/paginatable_array_extension.rb |