2019-07-30 21:29:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-12 20:03:43 +00:00
|
|
|
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
|
2018-03-25 17:30:42 +00:00
|
|
|
require 'qx'
|
|
|
|
|
|
|
|
module UpdateActivities
|
2021-01-14 21:33:10 +00:00
|
|
|
def self.for_supporter_notes(supporter_note)
|
|
|
|
user_email = supporter_note.user.email
|
|
|
|
supporter_note.activities.update_all(json_data: { content: supporter_note.content, user_email: user_email }.to_json,
|
|
|
|
updated_at: DateTime.now)
|
2019-07-30 21:29:24 +00:00
|
|
|
end
|
2018-03-25 17:30:42 +00:00
|
|
|
end
|