lib/rom/memory/commands.rb in rom-0.9.1 vs lib/rom/memory/commands.rb in rom-1.0.0.beta1
- old
+ new
@@ -12,15 +12,15 @@
class Create < ROM::Commands::Create
adapter :memory
# @see ROM::Commands::Create#execute
def execute(tuples)
- Array([tuples]).flatten.map do |tuple|
+ Array([tuples]).flatten.map { |tuple|
attributes = input[tuple]
validator.call(attributes)
relation.insert(attributes.to_h)
attributes
- end.to_a
+ }.to_a
end
end
# In-memory update command
#