ish_models 0.0.33.25 → 0.0.33.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish_models/user_profile.rb +6 -0
- data/lib/tag.rb +2 -2
- data/lib/video.rb +1 -0
- 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: c46ddc16e4c06e25fbd09a210c979b5491175116
|
4
|
+
data.tar.gz: 85a686f7fb614ee0337bac0fcae943f9e05f47ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eca7d97f2292976f41acf7cc0ab734e94ffadce135a762fa1cb2687138492997e7e25bfa24d90c20ac03bf2488bc11147f2e349a5ec8397d242e3ba9480b4b4f
|
7
|
+
data.tar.gz: 3d02dcc31604d8f3d5d16b8b2beeed629d9dc8cec8fe71c7f70c318b381ba943f691a07169807fbbdbf202ca6a304961ca30c38c6f9a8bbc16c0171a320878c7
|
@@ -31,6 +31,12 @@ class IshModels::UserProfile
|
|
31
31
|
has_many :reports, :inverse_of => :profile
|
32
32
|
has_many :videos
|
33
33
|
|
34
|
+
#
|
35
|
+
# preferences
|
36
|
+
#
|
37
|
+
field :videos_embed, :type => Boolean, :default => false
|
38
|
+
|
39
|
+
|
34
40
|
def sudoer?
|
35
41
|
%w( piousbox@gmail.com manager@gmail.com ).include?( self.user.email ) ? true : false
|
36
42
|
end
|
data/lib/tag.rb
CHANGED
@@ -49,8 +49,8 @@ class Tag
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def self.list
|
52
|
-
out = Tag.
|
53
|
-
[['', nil]] + out.map { |item| [ item.name, item.id ] }
|
52
|
+
out = Tag.unscoped.order_by( :name => :asc )
|
53
|
+
return( [['', nil]] + out.map { |item| [ item.name, item.id ] } )
|
54
54
|
end
|
55
55
|
|
56
56
|
# @deprecated, there will be no reports or galleries in tags. There will be only features and newsitems
|
data/lib/video.rb
CHANGED