class Riagent::Persistence::RiakNoIndexStrategy
Public Instance Methods
all(results_limit)
click to toggle source
Return all the documents in the collection. Since this is a “no index” strategy, this can only be done via a streaming list keys @param [Integer] results_limit Number of results returned (currently ignored) @return [Array<Riagent::ActiveDocument>] List of ActiveDocument
instances
# File lib/riagent/persistence/riak_no_index_strategy.rb, line 31 def all(results_limit) self.bucket.keys.inject([]) do |acc, k| obj = self.find(k) obj ? acc << obj : acc end end