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.
- checksums.yaml +4 -4
- data/lib/city.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f09269340d4d6c43b23eb5a247f31f95e10290cfee4e9a981b126cd7e7cddaee
|
4
|
+
data.tar.gz: 6715248105e5d4ba8d9e6ef974a0100fa652bfb1535255ed1d3aa917697106aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|