Don't want to balloon txn, but also don't want to end up with a state with broken data
This commit is contained in:
@@ -12,7 +12,7 @@ class Collection < ApplicationRecord
|
||||
scope :alphabetically, -> { order("lower(name)") }
|
||||
scope :ordered_by_recently_accessed, -> { merge(Access.ordered_by_recently_accessed) }
|
||||
|
||||
after_destroy_commit :ensure_default_collection
|
||||
after_destroy :ensure_default_collection
|
||||
|
||||
private
|
||||
def ensure_default_collection
|
||||
|
||||
Reference in New Issue
Block a user