post replacement: increase grace period to 30 days.

This commit is contained in:
evazion
2017-05-04 12:30:27 -05:00
parent 5f2219a005
commit 038e40ec98

View File

@@ -7,7 +7,7 @@ class Post < ActiveRecord::Base
class RevertError < Exception ; end
class SearchError < Exception ; end
DELETION_GRACE_PERIOD = 3.days
DELETION_GRACE_PERIOD = 30.days
before_validation :initialize_uploader, :on => :create
before_validation :merge_old_changes