Skip to content

Commit

Permalink
Fix de-linking marriages :(
Browse files Browse the repository at this point in the history
  • Loading branch information
drusepth committed Mar 1, 2017
1 parent d3ae752 commit a8e0382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/content_groupers/marriage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Marriage < ActiveRecord::Base
this_object = Character.find_by(id: self.character_id)
other_object = Character.find_by(id: self.spouse_id)

other_object.marriages.delete this_object
other_object.spouses.delete this_object
end

#todo "active" marriage?
Expand Down

0 comments on commit a8e0382

Please sign in to comment.