notee 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notee/helpers/notee_helper.rb +2 -2
- data/lib/notee/version.rb +1 -1
- 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: 909429fe0b8006227d3ff4e2b29923ca104b12e2
|
4
|
+
data.tar.gz: 4ca24b0377728a964b545d25dd264075aede0cdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b80db924026adb3bd28371eff6efcccfb422f6d643ae98d779098d4261e33dc9e4bb290e85e1ed3a600d4086099610f67956634f0059cc4815ab95e44e9408
|
7
|
+
data.tar.gz: 89860725995c743f37e59a710c5b267afef9623655e242b7ee4d8c8774ff56f8fe4df8bdd4a0e50d71e846bf08fa281b7a3c73a951a3db5f807a6d678285c99a
|
@@ -48,7 +48,7 @@ module Notee
|
|
48
48
|
end_time = Date.parse(tmp_date).end_of_year
|
49
49
|
end
|
50
50
|
|
51
|
-
@posts = Notee::Post.where(published_at: begin_time..end_time).order(published_at: :desc)
|
51
|
+
@posts = Notee::Post.where(published_at: begin_time..end_time, status: Notee::STATUS[:published], is_deleted: false).order(published_at: :desc)
|
52
52
|
@posts
|
53
53
|
end
|
54
54
|
|
@@ -60,7 +60,7 @@ module Notee
|
|
60
60
|
raise ActiveRecord::RecordNotFound unless writer
|
61
61
|
raise ActiveRecord::RecordNotFound if writer.is_deleted
|
62
62
|
|
63
|
-
@posts = writer.
|
63
|
+
@posts = Notee::Post.where(user_id: writer.id, status: Notee::STATUS[:published], is_deleted: false).order(published_at: :desc)
|
64
64
|
end
|
65
65
|
|
66
66
|
|
data/lib/notee/version.rb
CHANGED