paginative 0.0.7 → 0.0.8

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: a6c0b2f2d55c0872aad8d66c3d77ee983364e9fc
4
- data.tar.gz: 8b46e7e2611239d1812e2736a5d48b0918bf09f3
3
+ metadata.gz: 50ae7b425433ba6ce629752c3648cf7e45dca111
4
+ data.tar.gz: 3868c57e3e2146e4b4c5afb4c237d755e2353496
5
5
  SHA512:
6
- metadata.gz: 45a66141d6ddb9fd4d66820f08ab6f30623382f6bc22ae90b2cfa76ce2e07af8dc599072bc92a42c989898255524afedddd20ea683f3f1da2839a9473f4ca93b
7
- data.tar.gz: 22a8b67b779ff08e155748e3e37cba6b025d91628f4904196a9e2377c1a6c395d22673b71d1193b483f89ddc337abd40429e34593f074b95d7f93abe798576da
6
+ metadata.gz: 9f3886ed72499cf45372c4040d0da5675f5c034818605c71323ca365b6bf09a24b2960aae424db669bc7ca5d0cc9e233f491a2bba7a749e8d64b1567ad8b0837
7
+ data.tar.gz: 7b16a2e5ded25b7deb22b68226963b28b1cd28942a9e1dfa2952ba033bb6e1b2e9d41af86f9e3b4ae0e4cafb844a56c4a55c27065519d1db5f9adaa90be58719
@@ -20,6 +20,7 @@ module Paginative
20
20
  end
21
21
 
22
22
  def self.with_field_from(field="", value="", limit=25, order="asc")
23
+ field = "#{self.name.tableize}.#{field}"
23
24
  return self.order("#{field} DESC").where("#{field} < '#{value}'").limit(limit) if order == "desc"
24
25
  self.order("#{field} ASC").where("#{field} > '#{value}'").limit(limit)
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module Paginative
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
Binary file