ish_models 0.0.33.116 → 0.0.33.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/city.rb +1 -1
  3. data/lib/gallery.rb +1 -1
  4. data/lib/tag.rb +4 -4
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f09269340d4d6c43b23eb5a247f31f95e10290cfee4e9a981b126cd7e7cddaee
4
- data.tar.gz: 6715248105e5d4ba8d9e6ef974a0100fa652bfb1535255ed1d3aa917697106aa
3
+ metadata.gz: ef4f46d4145fd56550698161657af3b3cf77e907536157eddccd58133c6d12d1
4
+ data.tar.gz: 2fcc853c11188b83ccd9af5a0895cb50d3c16672616b12eee7ef280c00c77d2b
5
5
  SHA512:
6
- metadata.gz: 7339a428e96136098e4be1555a0e9165b63da47dec007eeac7ed5dd42da54446d86c432cdf4b942112f47269b8ddb217fc4116ebdeefbf67b0f5eb86b7f53f8e
7
- data.tar.gz: 217a2df35598decbe933e7eb6485db97fb792f76061f271682007d02d6616ebccac87eb4dbaa2b58fa6ac6183b7112dd7d28e12a59550e6b07372a3f3d2cdcf0
6
+ metadata.gz: f141fe8dccd35cc165fac199bff8516cb26660fb2c811dc1f69c3b98d2e81235d435e5827d519b936bc8ae1dd891bdc96296219c63e9b61ffa3055bea3c12eaf
7
+ data.tar.gz: 8aa13dde8022284a104458002cd404cec31ea5181656256bdb08cf186892dc09b48ee985239e32b66ce668c313951d32dd574577cf40c07f466544f6abce01c0
data/lib/city.rb CHANGED
@@ -27,7 +27,7 @@ class City
27
27
  has_many :reports
28
28
  has_many :venues
29
29
  has_many :videos
30
- has_many :tags
30
+ has_and_belongs_to_many :tags
31
31
 
32
32
  has_many :current_users, :class_name => '::IshModels::UserProfile', :inverse_of => :current_city
33
33
  has_many :newsitems
data/lib/gallery.rb CHANGED
@@ -47,7 +47,7 @@ class Gallery
47
47
 
48
48
  has_many :photos
49
49
 
50
- belongs_to :tag, :optional => true
50
+ has_and_belongs_to_many :tags
51
51
  belongs_to :city, :optional => true
52
52
  belongs_to :venue, :optional => true
53
53
 
data/lib/tag.rb CHANGED
@@ -16,10 +16,6 @@ class Tag
16
16
 
17
17
  field :weight, :type => Integer, :default => 10
18
18
 
19
- has_and_belongs_to_many :reports
20
- has_many :galleries
21
- has_many :videos
22
-
23
19
  has_many :children_tags, :class_name => 'Tag', :inverse_of => :parent_tag
24
20
  belongs_to :parent_tag, :class_name => 'Tag', :inverse_of => :children_tags, :optional => true
25
21
 
@@ -31,6 +27,10 @@ class Tag
31
27
  belongs_to :city, :optional => true
32
28
 
33
29
  has_and_belongs_to_many :venues
30
+ has_and_belongs_to_many :cities
31
+ has_and_belongs_to_many :galleries
32
+ has_and_belongs_to_many :reports
33
+ has_and_belongs_to_many :videos
34
34
 
35
35
  default_scope ->{
36
36
  where({ :is_public => true, :is_trash => false }).order_by({ :name => :asc })
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.116
4
+ version: 0.0.33.117
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox