drg_blog_news_forum 0.5.5 → 0.5.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/dc_blog_renderer.rb +1 -1
- data/app/helpers/dc_news_renderer.rb +1 -1
- data/lib/drg_blog_news_forum/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: d0f02f8c6b3b45b8f73749b9ceb4b9809d812b30
|
4
|
+
data.tar.gz: 8f00f97e69d907287e860093fbfbff160ca54303
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4da2bc2173355bba15e78b222e252cb2e4da68ade4961f67eb22f46bd1253428feccc5531f4e46e0667734299139c51d2a70b16061fd396a04f68b5301222c6
|
7
|
+
data.tar.gz: b184c9e6151d8d6f4070d7b85c9930dcabf6468f770794f4acab81044747c84575a74209725846f5b3b54693edc222f8d7a8e21fda97cf8e90190dd60d72e25b
|
@@ -65,7 +65,7 @@ end
|
|
65
65
|
def last_blogs
|
66
66
|
limit = @opts[:limit] || 3
|
67
67
|
entries = DcBlog.only(:created_by_name, :link, :subject, :created_at)
|
68
|
-
.where(active: true, :created_at.
|
68
|
+
.where(active: true, :created_at.gt => 2.months.ago)
|
69
69
|
.order_by(created_at: -1).limit(limit).to_a
|
70
70
|
if entries.size > 0
|
71
71
|
# for document link.
|
@@ -56,7 +56,7 @@ end
|
|
56
56
|
def last_news
|
57
57
|
limit = @opts[:limit] || 3
|
58
58
|
entries = DcNews.only(:created_by_name, :link, :subject, :created_at)
|
59
|
-
.where(active: true, :created_at.
|
59
|
+
.where(active: true, :created_at.gt => 2.months.ago)
|
60
60
|
.order_by(created_at: -1).limit(limit).to_a
|
61
61
|
if entries.size > 0
|
62
62
|
# for document link.
|