Skip to content

Commit b33ccaa

Browse files
committed
Remove unused callbacks in the Topic model
1 parent faf07d1 commit b33ccaa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

activerecord/test/models/topic.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def topic_id
5656

5757
alias_attribute :heading, :title
5858

59-
before_validation :before_validation_for_transaction
6059
before_save :before_save_for_transaction
61-
before_destroy :before_destroy_for_transaction
6260

6361
after_save :after_save_for_transaction
6462
after_create :after_create_for_transaction
@@ -108,9 +106,7 @@ def set_email_address
108106
end
109107
end
110108

111-
def before_validation_for_transaction; end
112109
def before_save_for_transaction; end
113-
def before_destroy_for_transaction; end
114110
def after_save_for_transaction; end
115111
def after_create_for_transaction; end
116112

0 commit comments

Comments
 (0)