recordselect 3.4.14 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/record_select/actions.rb +1 -1
- data/lib/record_select/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 152f8baeb870b2d1b71c7e85845071fe73c227e8
|
|
4
|
+
data.tar.gz: b674c62e25aacc9caa4da6726a414135997f8775
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af47dde90a1cd81d8c5cd2e14bb3404de33c792e7cc95a0935d80c509834dbaddc11d3ef7e28cbcc3e3df6484b9ec25943b5be94199b58a3a21f666f804eb8d4
|
|
7
|
+
data.tar.gz: 8fb2273ba1e26e6da299f3f4f97ce75f83d1481aa6fc99ea102c1cfe8bb1e087c717bc320a691e0576ed8396280c8add1cd6f65ced61b80e9e37e668e1c6c110
|
|
@@ -8,7 +8,7 @@ module RecordSelect
|
|
|
8
8
|
klass = record_select_model.where(conditions).includes(user_includes)
|
|
9
9
|
klass = klass.references(user_includes) if Rails::VERSION::MAJOR >= 4 && user_includes.present?
|
|
10
10
|
@count = klass.count if record_select_config.pagination?
|
|
11
|
-
@count = @count.length if @count.is_a?
|
|
11
|
+
@count = @count.length if @count.is_a? Hash
|
|
12
12
|
pager = ::Paginator.new(@count, record_select_config.per_page) do |offset, per_page|
|
|
13
13
|
search = record_select_select ? klass.select(record_select_select) : klass
|
|
14
14
|
search = search.limit(per_page).offset(offset) if record_select_config.pagination?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recordselect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergio Cambra
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-
|
|
13
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: shoulda
|