snorlax 0.1.5 → 0.1.6

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: 2275e30723ffb0f1d7e9892ec4398cd0715e90f0
4
- data.tar.gz: 05b2977a32bb2c0102fb6bad962c66692523607a
3
+ metadata.gz: ab822b884e44d071263e73c70fd0e06561b7e1de
4
+ data.tar.gz: 77e94db2108f8149d2a8600eb1fd3b36591152ba
5
5
  SHA512:
6
- metadata.gz: 60299279a6e0e7e7d48e0307d4c5b3571bda085df43f3569ae28e94565e415b697313022e175e2ac34b690f82f071e9dbc6ef5456ad65ff5bed149ca3854ae06
7
- data.tar.gz: 95366fa304596bbdb4e3d99d06dc2bb6685dd0ae5e5703eacadadde54a7078b06a876d2b5e1150cda58dc9418ce8e32c4422da53f50edbd16af5b01b2ba97360
6
+ metadata.gz: fb37230d811f14b4220526ac3fcc89dfab2e235a0671eba29417dcbb60d5afb81195b51833ce34c972e26733c1203cb7b8a28fc5da43c31a30c76baf8c306849
7
+ data.tar.gz: d30b08684c8b87e5bb198fa248b0ec63cfb7fb9e539350dbcf47855404f423422d578e31a5cb0d5b980774e1bd64c4bd41ae2d739584474973984838eb2aba39
@@ -97,7 +97,7 @@ module Snorlax
97
97
  end
98
98
 
99
99
  def page_collection(collection)
100
- collection.offset(params[:from]).limit(params[:per] || default_page_size)
100
+ collection.offset(params[:from].to_i).limit((params[:per] || default_page_size).to_i)
101
101
  end
102
102
 
103
103
  def accessible_records
@@ -1,3 +1,3 @@
1
1
  module Snorlax
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snorlax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Kiesel (gdpelican)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails