Class: Spyke::Collection
- Inherits:
-
Object
- Object
- Spyke::Collection
- Defined in:
- lib/fakturan_nu/spyke_extensions.rb
Instance Method Summary collapse
-
#concat(ary_or_collection) ⇒ Object
For pagination.
Instance Method Details
#concat(ary_or_collection) ⇒ Object
For pagination. Makes it possible to do ps = Fakturan::Product.all and then ps.concat(Fakturan::Product.get(ps.metadata)) while ps.metadata)
6 7 8 9 |
# File 'lib/fakturan_nu/spyke_extensions.rb', line 6 def concat ary_or_collection @metadata = ary_or_collection. if ary_or_collection.respond_to?(:metadata) super end |