api-pagination 4.6.2 → 4.6.3

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: '0629495ca2144885e381738a046c4256daf75498'
4
- data.tar.gz: 251bfbe07f92e882c712691e866b950e138a7c8d
3
+ metadata.gz: 46d7226c8a328bfa01b1f5c22dff277ff8dcbe53
4
+ data.tar.gz: d1220245784cab438b6826a0ee86521fb6f03b3d
5
5
  SHA512:
6
- metadata.gz: 361840ddd1ccc042de76ee95dcd7de2794ee6f0c6ef7091a2ad9ac00d4e4d7c64f382c13b641d9eea1b1cb70f44b444dacf8ec97a057d752f2966f605503b13b
7
- data.tar.gz: 4061713d731ddddb21d36ebcfccc3b1e093ae7870f9383d77da5fd392f40b7a0669dbcba5fb43fc8fd35420a3ce05c594b0eed086cc08513e9c3931171c0f3ea
6
+ metadata.gz: d9d73a37c44ec2401e465ed190e9ba012203d6385d7077730434ed8447193ec365bf8320f08f74ae85df01260fed6d031ec7187d7e44adae18cffb7311372a0c
7
+ data.tar.gz: 98e2ba7d85a402962a110acc82fc684f25f028c0804a30ed185509eeeb33cff53ab13512bc5f32684bacb5611fc0f87763e6164fd4322c6f5329a1a959bd371d
@@ -82,7 +82,7 @@ module ApiPagination
82
82
 
83
83
  def detect_model(collection)
84
84
  if collection.respond_to?(:table_name)
85
- collection.table_name.singularize.capitalize.constantize
85
+ collection.table_name.classify.constantize
86
86
  else
87
87
  collection.first.class
88
88
  end
@@ -2,7 +2,7 @@ module ApiPagination
2
2
  class Version
3
3
  MAJOR = 4
4
4
  MINOR = 6
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.2
4
+ version: 4.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-25 00:00:00.000000000 Z
11
+ date: 2017-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec