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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ab026ee82cfb953e027cac14561792a73a77af1
4
- data.tar.gz: 00160f91bc7a972cc62ba1750ac689729c5ead6a
3
+ metadata.gz: b52df6c233f955d2a2ea3edd9ec7e127c463d19e
4
+ data.tar.gz: 05d0a8cb907b92bd9ae3c42f07bc848878f0232d
5
5
  SHA512:
6
- metadata.gz: d073777ea3d009e46a340845a40180a08cc57bbfdbf335b49ecfff4659700d8dc4521be2dc65ce0865af6aa5b7511786d61947454e846047266dac18e12607f7
7
- data.tar.gz: 0a1e6af0221895b656ca943f28653b6f474339298635dbb422ae305d730170589b0c331b932d53372a3db210a5600d9360c25a673981b45245064d96155452b5
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
 
@@ -4,8 +4,8 @@ module IshModels
4
4
  include ::Mongoid::Document
5
5
  include ::Mongoid::Timestamps
6
6
 
7
- ## /api/cities.json
8
- field :cities, :type => Time
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
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.60
4
+ version: 0.0.33.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox