Compare View
Commits (2)
-
Fix cyclic destruction when destroying a community, there is a cyclic dependency with SoftwareInfo, that causes each one to try to destroy the other. This MR removes one of the sides of the dependency. See merge request !255
Showing
1 changed file
Show diff stats
src/noosfero-spb/software_communities/lib/software_communities_plugin/software_info.rb
... | ... | @@ -78,7 +78,7 @@ class SoftwareCommunitiesPlugin::SoftwareInfo < ActiveRecord::Base |
78 | 78 | has_many :operating_system_names, :through => :operating_systems, :class_name => 'SoftwareCommunitiesPlugin::OperatingSystemName' |
79 | 79 | has_many :categories, :through => :community |
80 | 80 | |
81 | - belongs_to :community, :dependent => :destroy | |
81 | + belongs_to :community | |
82 | 82 | belongs_to :license_info, :class_name => 'SoftwareCommunitiesPlugin::LicenseInfo' |
83 | 83 | |
84 | 84 | validates_length_of :finality, :maximum => 4000 | ... | ... |