Commit 7c46be1895da264caee86b810c6a6e4bf9a3ee71
1 parent
27bcd2a0
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Revert "sub_organizations: fix relation issue"
This reverts commit ecac3a4211106428d1e4c96ddc4158fe2c3564bb.
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_id => parent.id, :child_id => child.id)} | |
| 30 | + children.each {|child| create!(:parent => parent, :child => child)} | |
| 31 | 31 | end |
| 32 | 32 | |
| 33 | 33 | def remove_children(parent, *children) | ... | ... |