templus_models 3.0.19 → 3.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/crud/_records.html.erb +1 -1
- data/config/initializers/raro_search.rb +9 -4
- data/lib/templus_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceddeb835a1405f5013bf6d95cb6a2e0a2ef3fde23ca98904dedb189c670b680
|
4
|
+
data.tar.gz: 1c86d3fb910903056745b1767ad4d7044de431e9685073253124dd5634ce308d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00d81588bf7dc3cea202de0d104369706142dbf3e7e7fa0f3c1fe8d9e997798e61d89071e6c3f7a4755332242ba82a7b677e4d889cefa405a2a3214ac1b3a8ef
|
7
|
+
data.tar.gz: e9a051ff22d1642fa8ededd6375dcf1bcfdd84636abc4b603b0edf88809d9a42f1bd63caea033d6019558d9af1a36fa5971631ee733a4f466c7e67ce7eaa72e5
|
@@ -15,10 +15,15 @@ Ransack.configure do |config|
|
|
15
15
|
end
|
16
16
|
|
17
17
|
module Kaminari
|
18
|
-
module
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
module Helpers
|
19
|
+
module HelperMethods
|
20
|
+
def paginate(scope, paginator_class: Kaminari::Helpers::Paginator, template: nil, **options)
|
21
|
+
options[:total_pages] ||= scope.total_pages
|
22
|
+
options.reverse_merge! current_page: scope.current_page, per_page: scope.limit_value, total_pages: scope.total_pages, total_count: scope.total_count, remote: false
|
23
|
+
|
24
|
+
paginator = paginator_class.new (template || self), options
|
25
|
+
paginator.to_s
|
26
|
+
end
|
22
27
|
end
|
23
28
|
end
|
24
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: templus_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Sol
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-06-
|
13
|
+
date: 2019-06-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|