Sha256: c50ee120c6f0e4eedee628470fd87699d0eba8ccdbb4ae3573d6778240ba5ce7

Contents?: true

Size: 274 Bytes

Versions: 3

Compression:

Stored size: 274 Bytes

Contents

## This extension allow us to invoke `pagination methods`
## on kaminari/paginatable_array

if defined?(Kaminari)

  require "kaminari/models/array_extension"

  class Kaminari::PaginatableArray
    def decorate
      Draper::CollectionDecorator.new(self)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
draper-extensions-0.1.2 lib/draper/extensions/paginatable_array.rb
draper-extensions-0.1.1 lib/draper/extensions/paginatable_array.rb
draper-extensions-0.1.0 lib/draper/extensions/paginatable_array.rb