aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorteddywing2017-08-30 19:18:34 +0200
committerGitHub2017-08-30 19:18:34 +0200
commit637defea87489a4f969766e638d190facd54009a (patch)
tree0f80bacae657cb3999e9a3be27787b5f6c72550d /app
parent6f9ab93c2af49d093a305d1dea904d5d53e74cb6 (diff)
parent7669cd8ae27bcbb8dbf1b5a968d50a7977b78d60 (diff)
downloadchouette-core-637defea87489a4f969766e638d190facd54009a.tar.bz2
Merge pull request #58 from af83/import-model--clean-up-code-and-add-specs
Import model clean up code and add specs
Diffstat (limited to 'app')
-rw-r--r--app/models/import.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/import.rb b/app/models/import.rb
index cdda3d0dc..eb2428b2b 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -29,11 +29,11 @@ class Import < ActiveRecord::Base
end
def notify_parent
- parent.child_change(self)
+ parent.child_change
update(notified_parent_at: DateTime.now)
end
- def child_change(child)
+ def child_change
return if self.class.finished_statuses.include?(status)
update_status