Sha256: 755eb6242782f3dc4359ef45f94aa008c4123c3446aaee496f0ebe0e753197f8

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

require 'active_support/core_ext/hash'

class Irwi::Paginators::None

  def paginate( collection, options = {} )
    find_options = options.except :page, :per_page, :total_entries, :finder

    collection.find( :all, find_options )
  end

  def paginated_section( view, collection, &block )
    yield
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
irwi-0.4.1 lib/irwi/paginators/none.rb
irwi-0.4.0 lib/irwi/paginators/none.rb