mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
comments
This commit is contained in:
@@ -25,6 +25,12 @@ module Trashable
|
|||||||
end
|
end
|
||||||
|
|
||||||
def trash!
|
def trash!
|
||||||
|
# note, an argument could be made that the column should probably called trashed_at
|
||||||
|
# however, deleted_at is the terminology used in the UI
|
||||||
|
#
|
||||||
|
# we could hijack use a delete! and delete - redirecting the originals elsewhere, but that is
|
||||||
|
# confusing as well. So for now, we go with trash!
|
||||||
|
#
|
||||||
update_column(:deleted_at, DateTime.now)
|
update_column(:deleted_at, DateTime.now)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user