ish_models 0.0.33.106 → 0.0.33.107

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 +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f10773384bc286d4a8eb31fede271150e828e3c8e22c07aa07ad569a3b85f6f0
4
- data.tar.gz: 79b28731cfa05022a699ff2f8711460959d2468e3a11a45f44e3553b97e13900
3
+ metadata.gz: 12835185bbebf4912fd67f1f86c5a03a686d7c78ce240afe7b8f89311e38a89f
4
+ data.tar.gz: 71c742001170340416d2a8b00393427678d1cacd6932b5e3bd4c656cc06bf546
5
5
  SHA512:
6
- metadata.gz: 6eb75fb041a984126e4f809bb49ecebda6757cc73a920d210ed853701278dbb82c4f11d77cbc624e37b14be3b7225a26f030ad98c8fb3c39be4ee3b4c61f2892
7
- data.tar.gz: 91d5a810d8f8912a2917fc086b05781e7a7757210087719c4560f3065b19ceb4adb9d5a7b0b5f8e32fee2bc05193a7e2b091f6b99f7cddaefba69202a23d7266
6
+ metadata.gz: 91b701f2dffb2fd0b6396a864fa8bea4725832d1f51af14e064c8702a1ab89e5d2a1f4b9b8a7e4ae8e1bb533515c6e4ca185fab89a9b6cab05a7ddbf28ffe3ca
7
+ data.tar.gz: f9095dffd0c244037976ef0075ef45dee29c60708592c68a9e9a8460ff915305c074cdfb260be32869bf8ff61fa993358e581314c4b103af41c2a7c26ba7091b
data/lib/city.rb CHANGED
@@ -13,6 +13,11 @@ class City
13
13
  field :x, :type => Float
14
14
  field :y, :type => Float
15
15
 
16
+ field :deleted_at, type: Time
17
+ def self.all
18
+ self.where( deleted_at: nil ).order_by( name: :desc )
19
+ end
20
+
16
21
  belongs_to :country, :optional => true
17
22
 
18
23
  has_many :events
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.106
4
+ version: 0.0.33.107
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox