Method: CEML::Incident#sync

Defined in:
lib/ceml/models/incident.rb

#sync(q) ⇒ Object



157
158
159
160
# File 'lib/ceml/models/incident.rb', line 157

def sync q
  this[:synced] = pc
  return true if players_with_role(q[:role]).all?{ |p| p[:synced] == pc }
end