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.
- checksums.yaml +4 -4
- data/lib/city.rb +1 -1
- data/lib/gallery.rb +1 -1
- data/lib/tag.rb +4 -4
- 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: ef4f46d4145fd56550698161657af3b3cf77e907536157eddccd58133c6d12d1
|
4
|
+
data.tar.gz: 2fcc853c11188b83ccd9af5a0895cb50d3c16672616b12eee7ef280c00c77d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f141fe8dccd35cc165fac199bff8516cb26660fb2c811dc1f69c3b98d2e81235d435e5827d519b936bc8ae1dd891bdc96296219c63e9b61ffa3055bea3c12eaf
|
7
|
+
data.tar.gz: 8aa13dde8022284a104458002cd404cec31ea5181656256bdb08cf186892dc09b48ee985239e32b66ce668c313951d32dd574577cf40c07f466544f6abce01c0
|
data/lib/city.rb
CHANGED
data/lib/gallery.rb
CHANGED
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 })
|