ish_models 0.0.33.115 → 0.0.33.116

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/city.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bb4950df8e18100e09baa2335e94d436fd1061980b67a840b2d5579643462e1
4
- data.tar.gz: b660b540fc3c8d27843251001e0050d720060ddd0b976faf7f32224d155717e1
3
+ metadata.gz: f09269340d4d6c43b23eb5a247f31f95e10290cfee4e9a981b126cd7e7cddaee
4
+ data.tar.gz: 6715248105e5d4ba8d9e6ef974a0100fa652bfb1535255ed1d3aa917697106aa
5
5
  SHA512:
6
- metadata.gz: 0a3f92c4345eeac554acc617c8172aa29b93519a0b8d46f5c5e81e828f2a1f271fe18d0995e1f5d69db4897997a0902760fae06955941e5ea21bb3500fd14653
7
- data.tar.gz: b9c9876006707670a5ab236a4def4d61a20bba8235d83cf7901f2d096ae339bd8c62d874cfc4c397d20f30f00ff710ce8df2ef5119907c10a681308b14519bef
6
+ metadata.gz: 7339a428e96136098e4be1555a0e9165b63da47dec007eeac7ed5dd42da54446d86c432cdf4b942112f47269b8ddb217fc4116ebdeefbf67b0f5eb86b7f53f8e
7
+ data.tar.gz: 217a2df35598decbe933e7eb6485db97fb792f76061f271682007d02d6616ebccac87eb4dbaa2b58fa6ac6183b7112dd7d28e12a59550e6b07372a3f3d2cdcf0
data/lib/city.rb CHANGED
@@ -16,7 +16,7 @@ class City
16
16
 
17
17
  field :deleted_at, type: Time
18
18
  def self.all
19
- self.where( deleted_at: nil ).order_by( name: :desc )
19
+ self.where( deleted_at: nil, is_active: true ).order_by( name: :desc )
20
20
  end
21
21
 
22
22
  belongs_to :country, :optional => true
@@ -39,6 +39,7 @@ class City
39
39
  embeds_many :features
40
40
 
41
41
  field :calendar_frame, :type => String
42
+ field :is_active, type: Boolean, default: true
42
43
 
43
44
  default_scope ->{ order_by({ :name => :asc }) }
44
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.115
4
+ version: 0.0.33.116
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox