mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
Fix deprecation warnings for rails 6.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user