load_more 0.0.3 → 0.0.4

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: 003fb6844eb4348ea2d3bd7325e0f044eb8f59c7
4
- data.tar.gz: 8c0136cb8f4bbac8ef5e337c19ee5be5b84aed4c
3
+ metadata.gz: 47539dc513cd2fa7d7c0046ea2317aee4eeb5d0e
4
+ data.tar.gz: 95478dbdf6aadad5dde010f7b06d4249229b4c73
5
5
  SHA512:
6
- metadata.gz: 57a27f910e21ff0778c060cf6580471b93858ee41e677df04c71f4416b98265e2e0cf27d92d13ec78221c7c092a223dec933020b7091d694f90657b1073899a9
7
- data.tar.gz: 58f03eb46d89c40bac4eb21f57748bbbc6aaac2aad1d3898f1817bd3e3447c5f56dc277f1ecf232c2201b7b5c28b6cde894b72d43cd749e3a55e4cfe7c0c89c6
6
+ metadata.gz: 165b7854d5fe4d082dd45848b44d249000ad57c0940b2f6d77e23ff04c46b040f869ebb9fc220bff9402cd1897c1504fbd61ce7bd0a1862f8176413f976d0195
7
+ data.tar.gz: 3601b69f85dcb31fb4bfff22ad7ea9c1ac9861994cfcdb6cf94c1b0c29d63f07f118f35be9ae25b48ba73db5e57b85ef9f95c27b891730215748eb17090dc2ea
data/README.rdoc CHANGED
@@ -16,9 +16,9 @@ In your model:
16
16
  The default 'per_load' value is 10.
17
17
 
18
18
  Then you can use
19
- >> Article.load_more(last_load: 99)
19
+ >> Article.load_more(last_load: params[:last_load_id])
20
20
  or
21
- >> Article.last_load(99)
21
+ >> Article.last_load(params:[last_load_id])
22
22
 
23
23
  You can also customize the per_load value:
24
24
  >> Article.load_more(per_load: 20, last_load: 99)
@@ -1,3 +1,3 @@
1
1
  module LoadMore
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/load_more.rb CHANGED
@@ -20,7 +20,7 @@ module LoadMore
20
20
  rel
21
21
  end
22
22
 
23
- def last_load(id)
23
+ def last_load(id = nil)
24
24
  load_more(last_load: id)
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: load_more
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiajia Wang