Fix deprecation warnings for rails 6.0

This commit is contained in:
Benjamin Neff
2022-07-16 18:17:06 +02:00
parent 2d38a24a86
commit b5a46cf7bb
20 changed files with 47 additions and 44 deletions

View File

@@ -97,6 +97,6 @@ class AccountDeleter
end
def mark_account_deletion_complete
AccountDeletion.find_by(person: person)&.update_attributes(completed_at: Time.now.utc)
AccountDeletion.find_by(person: person)&.update(completed_at: Time.now.utc)
end
end

View File

@@ -116,7 +116,7 @@ module Diaspora
if persisted_photo
persisted_photo.tap do |photo|
photo.update_attributes(
photo.update(
text: entity.text,
public: entity.public,
created_at: entity.created_at,
@@ -145,7 +145,7 @@ module Diaspora
def self.profile(entity)
author_of(entity).profile.tap do |profile|
profile.update_attributes(
profile.update(
first_name: entity.first_name,
last_name: entity.last_name,
image_url: entity.image_url,