do not touch the own model in an after commit hook
That just recurses endlessly, fixes #5146
This commit is contained in:
parent
2619beb157
commit
13f50eeee6
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class Post < ActiveRecord::Base
|
|||
|
||||
validates_uniqueness_of :id
|
||||
|
||||
after_commit :on => :create do
|
||||
after_create do
|
||||
self.touch(:interacted_at)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue