Class: Gexp::Receiver::Mongoid

Inherits:
Gexp::Receiver show all
Defined in:
lib/gexp/receiver/mongoid.rb

Instance Method Summary collapse

Methods inherited from Gexp::Receiver

current, current=, #initialize

Constructor Details

This class inherits a constructor from Gexp::Receiver

Instance Method Details

#receiveObject



5
6
7
8
9
10
11
# File 'lib/gexp/receiver/mongoid.rb', line 5

def receive
  Gexp::Mongoid::Transaction.with do |context|
    @stack.map do |command|
      command.perform
    end
  end
end