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