Skip to content

Commit

Permalink
fix: Numbered by not correctly being set by changing networks
Browse files Browse the repository at this point in the history
  • Loading branch information
mromulus committed Oct 31, 2024
1 parent e5dcea6 commit 3586b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/network_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class NetworkInterface < ApplicationRecord
accepts_nested_attributes_for :addresses,
reject_if: proc { |attributes| attributes.all? { |key, value| value.blank? || value == '0' } }

after_save :update_numbered_actor, if: :network_id_previously_changed?
after_save :network_change_cleanup
after_save :update_numbered_actor, if: :saved_change_to_network_id?

validate :network_in_exercise

Expand Down

0 comments on commit 3586b34

Please sign in to comment.