class Realm::CommandHandler

Public Instance Methods

call(*) click to toggle source
Calls superclass method Realm::ActionHandler::call
# File lib/realm/command_handler.rb, line 7
def call(*)
  gateway = context[:rom]&.gateways&.dig(:default)
  gateway ? gateway.transaction { super } : super
end

Protected Instance Methods

result(first, second = nil) click to toggle source
# File lib/realm/command_handler.rb, line 14
def result(first, second = nil)
  Result[first, second]
end