lib/volt/models/persistors/array_store.rb
# Find can take either a query object, or a block that returns a query object.  Use
# the block style if you need reactive updating queries
Find can take either a query object, or a block that returns a query object.  Use
the block style if you need reactive updating queries
Find can take either a query object or a block that returns a query object . Use the block style if you need reactive updating queries
def find(query = nil, &block)
        if block
          if query
            fail 'Query should not be passed in to a find if a block is specified'
          end
          query = block
        else
          query ||= {}
        end
        return Cursor.new([], @model.options.merge(query: query))
      end
def find ( query = nil , & block ) if block if query fail 'Query should not be passed in to a find if a block is specified' end query = block else query ||= { } end return Cursor . new ( [ ] , @model . options . merge ( query : query ) ) end
Find can take either a query object, or a block that returns a query object.
Find can take either a query object or a block that returns a query object .
# Set a default query if there is no block
query
block