aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-08-02 10:55:20 +0200
committerTeddy Wing2017-08-02 10:55:20 +0200
commite78c3241049cf29028138eee95f2af55d8fcfdd0 (patch)
treef91f1048b18d6c708d4ed4005ca3ad734853a306
parentb58e284fd33fb8f792c8b27bc070437d140dcdbf (diff)
downloadchouette-core-e78c3241049cf29028138eee95f2af55d8fcfdd0.tar.bz2
ParentImportNotifier: Simplify `#each` call
This call can be written much more concisely. Thanks for the suggestion Robert! Refs #3511
-rw-r--r--app/services/parent_import_notifier.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/parent_import_notifier.rb b/app/services/parent_import_notifier.rb
index faa5b8b3a..8581cb97a 100644
--- a/app/services/parent_import_notifier.rb
+++ b/app/services/parent_import_notifier.rb
@@ -1,9 +1,7 @@
class ParentImportNotifier
def self.notify_when_finished(imports = nil)
imports ||= imports_pending_notification
- imports.each do |import|
- import.notify_parent
- end
+ imports.each(&:notify_parent)
end
def self.imports_pending_notification