ish_models 0.0.33.273 → 0.0.33.274

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/gallery.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce4483156eaf2753a2d09a143a69c40c07208ec608bf53cc7541d20dd132c8e4
4
- data.tar.gz: abbdb42d7fa52d1616c41308032018792f7cdefa97b5b1558be8ac43bf68d379
3
+ metadata.gz: 90de218899ddf4fc0764c1f548417c53fcd398e1c3a1a31560ca796e411832bc
4
+ data.tar.gz: d0b1ec1ada583d9ac93b924a2a1701c2df0ba62c57c1243c80fcdaddeb00f3dc
5
5
  SHA512:
6
- metadata.gz: 6b412ba5b025855be856f61b381f99c2d3e5c39b85bb17c4feed51fcdfb36656b9127d2914decc5d200c497866e67fac04f35c3525695915ca3eb463b9105bbd
7
- data.tar.gz: 1fc79583fc22834902608533057a2a13edcfaaa6d29630daae77fe5dfd80fa5415758116606e5a83fd4760f926d52f4a446cb684bdf54972ac379ccb91086aa9
6
+ metadata.gz: eb4f60187c093f0661b90d0c064eb6ba4e294455f2b5287cc22f876041144a48fa9052162980dd8599986015fa89ed45b6a1ab809c0f8943b3bcc188ce14cd59
7
+ data.tar.gz: cd94a83ea12c95bd829385f26277c6fe730982d88c9078153a58065fdb8ec171c1b5436d286da506a34605c8aea2070b5108c99952a4c8e251b84476c7aea3d9
data/lib/gallery.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  class Gallery
3
- include ::Mongoid::Document
4
- include ::Mongoid::Timestamps
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
5
  include Ish::PremiumItem
6
6
  include Ish::Utils
7
7
 
@@ -20,7 +20,7 @@ class Gallery
20
20
  field :is_trash, type: Boolean, default: false
21
21
  field :is_done, type: Boolean, default: false
22
22
 
23
- def public
23
+ def published
24
24
  where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc })
25
25
  end
26
26
 
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.273
4
+ version: 0.0.33.274
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox