ish_models 0.0.33.60 → 0.0.33.61
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 +3 -3
- data/lib/ish_models/cache_key.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b52df6c233f955d2a2ea3edd9ec7e127c463d19e
|
4
|
+
data.tar.gz: 05d0a8cb907b92bd9ae3c42f07bc848878f0232d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29724d165d626e83e35d78dfd4d6d926e53a83daedf722051d4bd0d5b361db4b8027d3a0e103bef0c6c7071002569c9727731abc12daac68f7b84b7b4a0d5027
|
7
|
+
data.tar.gz: caaed0c9de4d7e426c62c4fef135a111036d998796e870598428d58c98e68af477b5abc33ae6aaf82bedc0a5e82efa176fbe26dbe2e6c655f30453a59b447a8f
|
data/lib/city.rb
CHANGED
@@ -10,13 +10,13 @@ class City
|
|
10
10
|
validates :cityname, :uniqueness => true, :allow_nil => false, :presence => true
|
11
11
|
|
12
12
|
field :name_en, :type => String, :default => ''
|
13
|
-
validates :name_en, :uniqueness => true, :allow_nil => false, :presence => true
|
13
|
+
# validates :name_en, :uniqueness => true, :allow_nil => false, :presence => true
|
14
14
|
|
15
15
|
field :name_ru, :type => String, :default => ''
|
16
|
-
validates :name_ru, :uniqueness => true, :allow_nil => false, :presence => true
|
16
|
+
# validates :name_ru, :uniqueness => true, :allow_nil => false, :presence => true
|
17
17
|
|
18
18
|
field :name_pt, :type => String, :default => ''
|
19
|
-
validates :name_pt, :uniqueness => true, :allow_nil => false, :presence => true
|
19
|
+
# validates :name_pt, :uniqueness => true, :allow_nil => false, :presence => true
|
20
20
|
|
21
21
|
field :is_feature, :type => Boolean, :default => false
|
22
22
|
|
data/lib/ish_models/cache_key.rb
CHANGED
@@ -4,8 +4,8 @@ module IshModels
|
|
4
4
|
include ::Mongoid::Document
|
5
5
|
include ::Mongoid::Timestamps
|
6
6
|
|
7
|
-
|
8
|
-
field :
|
7
|
+
field :cities, :type => Time # /api/cities.json
|
8
|
+
field :feature_cities, :type => Time # /api/cities/features.json
|
9
9
|
|
10
10
|
def self.one
|
11
11
|
IshModels::CacheKey.first || IshModels::CacheKey.new
|