ish_models 0.0.33.147 → 0.0.33.148

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/video.rb +3 -2
  3. metadata +17 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2af4a30d5895c96dfa6e0b57604155431d3bad1e63545983525a6703f8def2b5
4
- data.tar.gz: e6d1ab4d19a4eae08bb34da2855a7fe08f582af676933fb0c856ed57e77796e0
3
+ metadata.gz: 84cc3820b6d71d08c41b6f903b82547dc048150f15a9beb76daf0dd0e17d91dc
4
+ data.tar.gz: db8ea548690613d03cde7eb754c48ed86684184af3f7ef882b5329a822907d92
5
5
  SHA512:
6
- metadata.gz: 2be04cc815e921d2807dffe0ad15feadeeec327b72cacbef49b96b505d85c4870f0d45d5293749db8c05dad2163e1874fc1e2d70c2b33ba12deee38cd8c96f84
7
- data.tar.gz: c8611fdae51db950f7b218e52cbafebaeada3416d535392c91a628ce7aaa8adc6b17fb793af20f1496887dc23ca7cda83beb483665de797cbf1eaae6d14056f2
6
+ metadata.gz: d15d489470b5af11cd24a764578b23631819863b62800d99cd1ea4a5dc949df19af41af4948f4310ebf1738c9a3d18970d3b4925b69025b8885de48a7521aa68
7
+ data.tar.gz: 1b7fc6f63626ae2b9ebc7e97adc48b1267d4dbcf7b328dae1bdd1aec53e163864bd2bd0a429effc6e5790ccfa0942c31ceebd35861617abaad47723682ef3be7
data/lib/video.rb CHANGED
@@ -2,16 +2,17 @@ class Video
2
2
  include Mongoid::Document
3
3
  include Mongoid::Timestamps
4
4
  include Mongoid::Paperclip
5
+ include Mongoid::Paranoia
5
6
 
6
7
  PER_PAGE = 6
7
8
 
8
9
  field :name, :type => String
9
10
  field :descr, :type => String, :as => :description
10
11
 
11
- default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
12
+ # default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
12
13
 
13
14
  field :is_trash, :type => Boolean, :default => false
14
- field :is_public, :type => Boolean, :default => true
15
+ field :is_public, :type => Boolean, :default => false
15
16
  field :is_feature, :type => Boolean, :default => false
16
17
 
17
18
  field :x, :type => Float
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.147
4
+ version: 0.0.33.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 7.0.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: mongoid_paranoia
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: mongoid-autoinc
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -152,9 +166,9 @@ files:
152
166
  - lib/warbler/stock_option.rb
153
167
  - lib/warbler/stock_watch.rb
154
168
  - lib/warbler/yahoo_stockwatcher.rb
155
- homepage: http://wasya.co
169
+ homepage: https://wasya.co
156
170
  licenses:
157
- - MIT
171
+ - Proprietary
158
172
  metadata: {}
159
173
  post_install_message:
160
174
  rdoc_options: []