app/models/iro/alert.rb in iron_warbler-2.0.7 vs app/models/iro/alert.rb in iron_warbler-2.0.7.1
- old
+ new
@@ -1,4 +1,11 @@
class Iro::Alert < ApplicationRecord
self.table_name = 'iro_alerts'
+
+ DIRECTION_ABOVE = 'ABOVE'
+ DIRECTION_BELOW = 'BELOW'
+ def self.directions_list
+ [ nil, DIRECTION_ABOVE, DIRECTION_BELOW ]
+ end
+
end