Sha256: 2238b8bf2e7aba9cadd1fa3a21f4db2f67393281a6dabcbedff344876c3f5161
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
module Controller module PaginationConcern extend ActiveSupport::Concern private def load_collection collection_scope.page(params[:page]).per(pagination_size) end def pagination_size Itsf::Backend::Configuration.default_pagination_size end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itsf_backend-1.0.1 | app/controllers/concerns/controller/pagination_concern.rb |