Class: KonoUtilsBootstrapView4::PaginateProxer

Inherits:
KonoUtils::PaginateProxer
  • Object
show all
Defined in:
lib/kono_utils_bootstrap_view4/paginate_proxer.rb

Overview

Simple PORO to proxyng the pagination operations

Instance Method Summary collapse

Instance Method Details

#paginate(params = {}) ⇒ Object



6
7
8
# File 'lib/kono_utils_bootstrap_view4/paginate_proxer.rb', line 6

def paginate(params = {})
  collection.page(params[:page])
end