Sha256: d71d8a52c4698148c6d344ec2412fb297b9334fd4a10203951453e2efaf2ca9e
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
module Flexirails class ArrayView < ::Flexirails::View attr_reader :items def initialize params, items @items = items super params end def query offset, limit items[offset..(offset+limit-1)] end def total items.size end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexirails-0.1.0 | app/models/flexirails/array_view.rb |