added post#annihilate, removed stale post_moderation views
This commit is contained in:
@@ -893,6 +893,11 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
|
||||
module DeletionMethods
|
||||
def annihilate!
|
||||
delete!
|
||||
destroy
|
||||
end
|
||||
|
||||
def delete!
|
||||
Post.transaction do
|
||||
give_favorites_to_parent
|
||||
|
||||
Reference in New Issue
Block a user