trample_search 0.18.4 → 0.18.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trample/search.rb +10 -0
- data/lib/trample/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: 67a7d9c65e5c362724e5bd607a3625070dc9dd7a
|
4
|
+
data.tar.gz: a57574d842864208bd081334648803d6f8fffa23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1715b6ee0422f92e38c4b71e78e0e69167e097264e9b5e41a7886096483a7d55dcc2c916be2539d6926469b117fa4d98ced09b1fc6ef8f5baacb5b3588555adf
|
7
|
+
data.tar.gz: 1916b31e63db6953c92a5cd463abf9c210e670193a2e47723ccabc3cab517faa0bb0e5efeab7dd03ef079908004f3efe9568372ae176dc5cde5507810a69cd0e
|
data/lib/trample/search.rb
CHANGED
@@ -51,6 +51,16 @@ module Trample
|
|
51
51
|
self
|
52
52
|
end
|
53
53
|
|
54
|
+
def page(current_page)
|
55
|
+
metadata.pagination.current_page = current_page
|
56
|
+
self
|
57
|
+
end
|
58
|
+
|
59
|
+
def per(per_page)
|
60
|
+
metadata.pagination.per_page = per_page
|
61
|
+
self
|
62
|
+
end
|
63
|
+
|
54
64
|
def sort(*fields)
|
55
65
|
return self if fields.empty?
|
56
66
|
|
data/lib/trample/version.rb
CHANGED