Commit ecac3a4211106428d1e4c96ddc4158fe2c3564bb
1 parent
57753e00
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
sub_organizations: fix relation issue
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/sub_organizations/lib/sub_organizations_plugin/relation.rb
... | ... | @@ -27,7 +27,7 @@ class SubOrganizationsPlugin::Relation < Noosfero::Plugin::ActiveRecord |
27 | 27 | |
28 | 28 | class << self |
29 | 29 | def add_children(parent, *children) |
30 | - children.each {|child| create!(:parent => parent, :child => child)} | |
30 | + children.each {|child| create!(:parent_id => parent.id, :child_id => child.id)} | |
31 | 31 | end |
32 | 32 | |
33 | 33 | def remove_children(parent, *children) | ... | ... |