Remove invalid key in before_destroy
The `only:` key does not apply to model callbacks. It was added in commit 1077e25b2, probably by accident.
Using this key raises an error in Rails 6.0.
This commit is contained in:
@@ -5,7 +5,7 @@ class Poll
|
||||
|
||||
delegate :name, to: :booth
|
||||
|
||||
before_destroy :destroy_poll_shifts, only: :destroy
|
||||
before_destroy :destroy_poll_shifts
|
||||
|
||||
has_many :officer_assignments, dependent: :destroy
|
||||
has_many :officers, through: :officer_assignments
|
||||
|
||||
Reference in New Issue
Block a user