Skip to content

Commit bc727c2

Browse files
committed
Deleted after_save :clear_cache_categories in post
1 parent 45fb7f9 commit bc727c2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: app/models/post.rb

-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ class Post < ApplicationRecord
1111
scope :by_date, -> { order('id DESC') }
1212
validates :title, presence: true
1313
validates :body, presence: true
14-
after_save :clear_cache_categories
1514
after_save :clear_cache_posts
1615
end

0 commit comments

Comments
 (0)