Do no destroy if no feature is enabled.
This commit is contained in:
parent
f7835a9af0
commit
88e827e686
1 changed files with 2 additions and 0 deletions
|
@ -475,6 +475,7 @@ delete object activity stream, will be executed automatically
|
|||
=end
|
||||
|
||||
def activity_stream_destroy
|
||||
return if !@activity_stream_support_config
|
||||
ActivityStream.remove( self.class.to_s, self.id )
|
||||
end
|
||||
|
||||
|
@ -620,6 +621,7 @@ delete object history, will be executed automatically
|
|||
=end
|
||||
|
||||
def history_destroy
|
||||
return if !@history_support_config
|
||||
History.remove( self.class.to_s, self.id )
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue