site_blog 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '096554105a3aff053c1250f5aeb0e6921c4e0456a6b8846ca99bb94604af3032'
|
4
|
+
data.tar.gz: dbd69e2738818771b24bdae75ddbe8bd45deba6c069fc0facf6ec4b47ac538cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7701929be83bb6775dc3ace88a010804c106b144b1d69f26e7b0326820fcf674a772d2c9ee57dd47f168f6a47d22f7c41bf27427245c5da9bd4c376d06c37b
|
7
|
+
data.tar.gz: d32c0276d3eda5bbe729f1c31cb8d9d30d6e892f987476a614a679e35cdfde8f77696db2818b4d029e32f0d5142cea6000a223e06826e74986d07f1204aaabde
|
@@ -35,8 +35,7 @@ module SiteBlog
|
|
35
35
|
data = data.search(params[:query]) if params[:query].present?
|
36
36
|
count = data.count
|
37
37
|
data = data.order('created_at DESC')
|
38
|
-
data = data.page(params[:page]).per(
|
39
|
-
data = data.limit(params[:limit]) if params[:limit]
|
38
|
+
data = data.page(params[:page]).per(params[:limit])
|
40
39
|
|
41
40
|
{
|
42
41
|
total_count: count,
|
data/lib/site_blog/version.rb
CHANGED