aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/import.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-08-01 19:28:55 +0200
committerTeddy Wing2017-08-01 19:30:23 +0200
commit240c2270ca8e21c75170d6b7764562c049ef661a (patch)
treeae471688195b76f7791f322f8d72fe593dbcd969 /app/models/import.rb
parentaee3eb9f6533e88c817ffde7299b1d22544a8077 (diff)
downloadchouette-core-240c2270ca8e21c75170d6b7764562c049ef661a.tar.bz2
Import#notify_parent: Call #child_change on parent import
Calling `#notify_parent` should call the `#child_change` method on the import's parent import. That `#child_change` method will tell the parent to update itself based on the status of the child. Refs #3511
Diffstat (limited to 'app/models/import.rb')
-rw-r--r--app/models/import.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/import.rb b/app/models/import.rb
index 20b61a7f5..3cbdb964f 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -14,6 +14,10 @@ class Import < ActiveRecord::Base
before_create :initialize_fields
def notify_parent
+ parent.child_change(self)
+ end
+
+ def child_change(child)
end
private