Module: Kangaroo::Model::RemoteExecute

Included in:
Base
Defined in:
lib/kangaroo/model/remote_execute.rb

Instance Method Summary collapse

Instance Method Details

#call(name, *args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/kangaroo/model/remote_execute.rb', line 4

def call name, *args
  return_value = remote.send name, ids_for_execute, *args
  
  # TODO: handle warnings etc
  if Hash === return_value && return_value[:value]
    handle_updated_values return_value[:value] 
    self
  else
    return_value
  end
end