Sha256: 08c5ec09bd80d044191a8896390d868c47691107fd2aef8547b5af0959755b09
Contents?: true
Size: 386 Bytes
Versions: 49
Compression:
Stored size: 386 Bytes
Contents
module IndexerHelper def post(attrs = {}) @post ||= Post.new(attrs) end def last_add @connection.adds.last end def value_in_last_document_for(field_name) @connection.adds.last.last.field_by_name(field_name).value end def values_in_last_document_for(field_name) @connection.adds.last.last.fields_by_name(field_name).map { |field| field.value } end end
Version data entries
49 entries across 49 versions & 9 rubygems