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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 514e11e3d4214f25a42ca173c9c04dba311f9c4e
4
- data.tar.gz: 7c1f5e6f1e9b10306fa32dbec7908d8c6edc1a9e
3
+ metadata.gz: e7e056c81118cbc479bf6be049aba502264b7f43
4
+ data.tar.gz: 27a509954b2bcd0fb8fe4d4c14a1685182793b07
5
5
  SHA512:
6
- metadata.gz: bc075a5d760b97a24c570f4a47f7de92ef2781c5f059ff776ad8c75feb9a0d1add814adcb527a28c800bb65770b3f78f4f8eea74baccfca2c242ae2ea5c1787b
7
- data.tar.gz: fe04bdb7485109a1745e438959865212fdc4fd4aa8a92363f868b58f4e17004945c051ddcb0723be75daa4b40e4ee839c9f4c6ab47e06add14c5d670c415f844
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.name.tableize}.name) > ?", name.downcase).offset(0).limit(limit)
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)
@@ -1,3 +1,3 @@
1
1
  module Paginative
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paginative
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Norman