aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/line_control/route.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/line_control/route.rb')
-rw-r--r--app/models/line_control/route.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/app/models/line_control/route.rb b/app/models/line_control/route.rb
index 8ac13a080..aabd2f347 100644
--- a/app/models/line_control/route.rb
+++ b/app/models/line_control/route.rb
@@ -1,13 +1,6 @@
module LineControl
class Route < ComplianceControl
- @@default_criticity = :warning
- @@default_code = "3-Line-1"
-
- after_initialize do
- self.name = self.class.name
- self.code = @@default_code
- self.criticity = @@default_criticity
- end
+ def self.default_code; "3-Line-1" end
end
-end \ No newline at end of file
+end