iron_warbler 2.0.7.2 → 2.0.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2c0f62e19708995e8502435c211bfbc6fb4ce16267e58e2bff259fc67612790
4
- data.tar.gz: 51983a25aa8b6f044afb8806c820d15b86e2043b00b12bd99e700f9be6d01e07
3
+ metadata.gz: f2b30096d80bf9a313e727c174b2d7f1255954e7eb4ab4cc158a80395ae13af5
4
+ data.tar.gz: 7dbc3734a72d4669fb1daa9a400ce4b6e1409dae04eaf9d37de189fd5706fd2e
5
5
  SHA512:
6
- metadata.gz: 0b6b12ec94c7299df53fe2e2c8c4d462f4097a49942738b3be80882bdb223c69782b745fc30e3e8aacfcff573919b558945e99910372e00f28748735c8bfb864
7
- data.tar.gz: 4a5f5e6e01b647cec8bafbad03736858b8cc830f6defe1472ab7d6356b3e6ed01385ee668193332c17241fcf33ef20da793da9222970b082f2b9e0e123f38b7f
6
+ metadata.gz: 1c0a7e7f057d4c065b6976b4ff0bf236a6ce5e43ab0ca6943878e4567b6fbef7aa420a16b28ad7142accb1c0f359f873e4ef05a028c62b1530a417b24afe384b
7
+ data.tar.gz: 444a6658828e564757d82133822defa0964497c4a4e7c63d188a33024b4f8c4f0a54960a915be8d9de7da5ffa7006cff7f8ba0bda082766e4b9e9856e03ce802
@@ -2,10 +2,21 @@
2
2
  class Iro::Alert < Iro::ApplicationRecord
3
3
  self.table_name = 'iro_alerts'
4
4
 
5
+
5
6
  DIRECTION_ABOVE = 'ABOVE'
6
7
  DIRECTION_BELOW = 'BELOW'
7
8
  def self.directions_list
8
9
  [ nil, DIRECTION_ABOVE, DIRECTION_BELOW ]
9
10
  end
10
11
 
12
+ STATUS_ACTIVE = 'active'
13
+ STATUS_INACTIVE = 'inactive'
14
+ STATUSES = [ 'active', 'inactive' ]
15
+
16
+
17
+ def self.active
18
+ where( status: STATUS_ACTIVE )
19
+ end
20
+
21
+
11
22
  end
data/lib/iron_warbler.rb CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+ require "active_record/railtie"
2
3
  require 'haml'
3
4
 
4
5
  require "iro/engine"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_warbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7.2
4
+ version: 2.0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-20 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails