Sha256: 4b5d61ec40c21963b6035b29d20cebe3bd4b6c68a8e61fe16982a9da774c1a76

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

module ActionMerge
	class Document::Chunk < ApplicationRecord
  	belongs_to :action_merge_document
  	
  	def upsert(k,v)
			c = chunks.find(k).presence || chunks.new(primary_key => k)
			c.update!(v)
			c.save
  	end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action_merge-0.1.0 app/models/action_merge/document/chunk.rb