aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stif
diff options
context:
space:
mode:
authorRobert2017-11-27 11:27:16 +0100
committerRobert2017-12-14 15:34:46 +0100
commitd157011c12b20cedbe4501c4d228ebcdac3647bc (patch)
treead537f208f87a725d4c8800f59f1a6ee1908ce52 /lib/stif
parent424496bc6e7b6f94b0f34d3c11fb95fd7f6088c5 (diff)
downloadchouette-core-d157011c12b20cedbe4501c4d228ebcdac3647bc.tar.bz2
Fixes: #5006@10h;
Implementation of Filtering Out Referentials with foreign lines in `app/workers/workbench_import_worker.rb` - Using ZipService with the set of allowed lines of the organisation - Fixing Integration Specs of the worker - Refactoring, Debugging and Rebasing
Diffstat (limited to 'lib/stif')
-rw-r--r--lib/stif/my_workbench_scopes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stif/my_workbench_scopes.rb b/lib/stif/my_workbench_scopes.rb
index 89c4e659c..04bc93089 100644
--- a/lib/stif/my_workbench_scopes.rb
+++ b/lib/stif/my_workbench_scopes.rb
@@ -2,12 +2,13 @@ module Stif
class MyWorkbenchScopes
attr_accessor :workbench
+
def initialize(workbench)
@workbench = workbench
end
def line_scope(initial_scope)
- ids = self.parse_functional_scope
+ ids = parse_functional_scope
ids ? initial_scope.where(objectid: ids) : initial_scope
end