Class: RawUsageData

Inherits:
ApplicationRecord show all
Defined in:
app/models/raw_usage_data.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#update_sent_at!Object


7
8
9
# File 'app/models/raw_usage_data.rb', line 7

def update_sent_at!
  self.update_column(:sent_at, Time.current) if Feature.enabled?(:save_raw_usage_data)
end