Sha256: 852076baec5b1226f9c3198cee3121e9e2f4d10bdf6bdbeb806c822700c708c5

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

module Adminix
	module Web
		module ViewHelper

			def retrieve_data(data, page, per_page)
        from = (page - 1) * per_page
        to = from + per_page - 1
        data[from..to]
      end

		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adminix-0.2 lib/adminix/web/view_helper.rb