aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/workbench.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/workbench.rb')
-rw-r--r--app/models/workbench.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/workbench.rb b/app/models/workbench.rb
index adc0041dd..f02c6a5a1 100644
--- a/app/models/workbench.rb
+++ b/app/models/workbench.rb
@@ -3,7 +3,7 @@ class Workbench < ActiveRecord::Base
belongs_to :line_referential
belongs_to :stop_area_referential
- has_many :lines, through: :line_referential
+ has_many :lines, -> (workbench) { Stif::MyWorkbenchScopes.new(workbench).line_scope }, through: :line_referential
has_many :networks, through: :line_referential
has_many :companies, through: :line_referential
has_many :group_of_lines, through: :line_referential