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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16c773707afb78a847bd9be4ae3ac3f628138855
4
- data.tar.gz: a8f5711a78c1e93c145971936d984b385e3bd212
3
+ metadata.gz: c46ddc16e4c06e25fbd09a210c979b5491175116
4
+ data.tar.gz: 85a686f7fb614ee0337bac0fcae943f9e05f47ed
5
5
  SHA512:
6
- metadata.gz: f0fca29006402c8b335d4bb68d8c8151ce9322498bb81a458772aeecf7159ec987d9df44314fd11c71bfa0124805d45f13eb6d21aa6edba647d8af28257790fe
7
- data.tar.gz: a19f0b93b994a2b70c418616575dc13a55d5d1de242bf7dc6446503a958643c66694fdf0d605db33a08ab5690073d7ef679a3d40446a8e5bd06d9742f4cd36d7
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.all.order_by( :name => :desc )
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
@@ -6,6 +6,7 @@ class Video
6
6
 
7
7
  field :name, :type => String
8
8
  field :descr, :type => String
9
+ def description; descr; end
9
10
 
10
11
  default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
11
12
 
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.25
4
+ version: 0.0.33.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox