class ROM::CouchDB::Commands::Update
CouchDB
update command
Public Instance Methods
collection()
click to toggle source
# File lib/rom/couchdb/commands.rb, line 21 def collection relation.dataset end
execute(object)
click to toggle source
# File lib/rom/couchdb/commands.rb, line 25 def execute(object) document = object.dup collection << document [document] end