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.
- checksums.yaml +4 -4
- data/lib/gallery.rb +3 -3
- 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: 90de218899ddf4fc0764c1f548417c53fcd398e1c3a1a31560ca796e411832bc
|
4
|
+
data.tar.gz: d0b1ec1ada583d9ac93b924a2a1701c2df0ba62c57c1243c80fcdaddeb00f3dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
4
|
-
include
|
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
|
23
|
+
def published
|
24
24
|
where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc })
|
25
25
|
end
|
26
26
|
|