Sha256: 89738930829b741f3c61a5e047580dd02eab1f107099e6f39f36dbd13c732f2d

Contents?: true

Size: 279 Bytes

Versions: 35

Compression:

Stored size: 279 Bytes

Contents

  module Enumerable
    module ActsAsPaginatableResourceConcern
      def self.included(base)
        base.extend(ClassMethods)
      end
      
      module ClassMethods
        def page(page)
          Kaminari.paginate_array(all).page(page)
        end
      end
    end
  end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
itsf_backend-2.0.2 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-2.0.1 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.8 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.7 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.6 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.5 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.4 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.1 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.2.0 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.1.15 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.1.14 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.1.13 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.1.12 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.1.11 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb
itsf_backend-1.1.10 app/concerns/enumerable/acts_as_paginatable_resource_concern.rb