240
241
242
243
244
245
|
# File 'lib/openc3/models/trigger_model.rb', line 240
def activate
@active = true
@updated_at = Time.now.to_nsec_from_epoch
Store.hset(@primary_key, @name, JSON.generate(as_json(:allow_nan => true)))
notify(kind: 'activated')
end
|