aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/line_control/route.rb
diff options
context:
space:
mode:
authorcedricnjanga2017-09-20 17:11:27 +0200
committercedricnjanga2017-09-20 17:11:27 +0200
commite62e1036eeeca9df7397f0dbd930ececc7297ec1 (patch)
tree3bff5a676b9cd2a5cd8a6cb8ca1bccc017de24aa /app/models/line_control/route.rb
parent2ef17c0f8150d834fdf266c85a3caeed57987dd8 (diff)
downloadchouette-core-e62e1036eeeca9df7397f0dbd930ececc7297ec1.tar.bz2
Add the rest of compliance control models
Diffstat (limited to 'app/models/line_control/route.rb')
-rw-r--r--app/models/line_control/route.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/line_control/route.rb b/app/models/line_control/route.rb
new file mode 100644
index 000000000..8ac13a080
--- /dev/null
+++ b/app/models/line_control/route.rb
@@ -0,0 +1,13 @@
+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
+ end
+end \ No newline at end of file