diff options
| author | Robert | 2017-11-27 11:27:16 +0100 |
|---|---|---|
| committer | Robert | 2017-12-14 15:34:46 +0100 |
| commit | d157011c12b20cedbe4501c4d228ebcdac3647bc (patch) | |
| tree | ad537f208f87a725d4c8800f59f1a6ee1908ce52 /lib | |
| parent | 424496bc6e7b6f94b0f34d3c11fb95fd7f6088c5 (diff) | |
| download | chouette-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')
| -rw-r--r-- | lib/stif/my_workbench_scopes.rb | 3 |
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 |
