paginative 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paginative/models/model_extension.rb +1 -1
- data/lib/paginative/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: e7e056c81118cbc479bf6be049aba502264b7f43
|
4
|
+
data.tar.gz: 27a509954b2bcd0fb8fe4d4c14a1685182793b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e9c2ee30c85706fd543aefcc2a03c59784f07155b0bc762699687c544a13c19a2bb6458ee8473069b63232138156b1c814b064667ccefbd563560cd7a3ad802
|
7
|
+
data.tar.gz: 82df41e3b8f7091a2cf33802b390ba9a78dc2e7ca9dbf1d83cfc060c01fda254f54a87972ef1cd17c55e8d9358436dddee501a28065e0cf5d5971ff213dc2353
|
@@ -12,7 +12,7 @@ module Paginative
|
|
12
12
|
|
13
13
|
def self.with_name_from(name="", limit=25, order="asc")
|
14
14
|
return self.order("name DESC").where("lower(name) < ?", name.downcase).offset(0).limit(limit) if order == "desc"
|
15
|
-
self.order(name: :asc).where("lower(#{self.
|
15
|
+
self.order(name: :asc).where("lower(#{self.table_name}.name) > ?", name.downcase).offset(0).limit(limit)
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.with_id_from(id=0, limit=25)
|
data/lib/paginative/version.rb
CHANGED