mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:18:09 +08:00
DEV: remove update_attributes which is deprecated in Rails 6
See: https://github.com/rails/rails/pull/31998 update_attributes is a relic of the past, it should no longer be used.
This commit is contained in:
@ -28,7 +28,7 @@ describe UserSearch do
|
||||
Fabricate :post, user: user6, topic: topic
|
||||
Fabricate :post, user: staged, topic: topic4
|
||||
|
||||
user6.update_attributes(suspended_at: 1.day.ago, suspended_till: 1.year.from_now)
|
||||
user6.update(suspended_at: 1.day.ago, suspended_till: 1.year.from_now)
|
||||
end
|
||||
|
||||
def search_for(*args)
|
||||
|
Reference in New Issue
Block a user