lookout-ahoy 0.4.0 → 0.4.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9eb509fb47d4d1e2d9c43c7f5a45b0944f9224b2fdb09b3a6a087f7a6eab582c
|
|
4
|
+
data.tar.gz: ccec65eddc3561cf139337aaf62e0133e98f368198d50a826afd963ccb465f3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b39b76c6e689f08c9c77a6fbcb3acd1f61280a70e8de87c8f8ee73a4809039c59f845a979901739538d67d16fc64cc45b2871f8b985d27ebada32c25f07755cb
|
|
7
|
+
data.tar.gz: dc8116182b561da8cbff7896e7c97dfeeead7b93168f5edcb0c4d491f7e7bbb9055f65e738d68f168ccc9b62855f2efeb53d35e1459f9b97f71ede70bb2ed53f
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module Lookout
|
|
2
2
|
class ApplicationController < ActionController::Base
|
|
3
|
-
|
|
3
|
+
# Support both Pagy v9 (Backend) and v43+ (Method)
|
|
4
|
+
include defined?(Pagy::Method) ? Pagy::Method : Pagy::Backend
|
|
4
5
|
include CompareMode
|
|
5
6
|
include RangeOptions
|
|
6
7
|
include Rangeable
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
module Lookout
|
|
2
2
|
module ApplicationHelper
|
|
3
|
+
# Pagy v9 needs this, v43+ has it integrated
|
|
4
|
+
include Pagy::Frontend if defined?(Pagy::Frontend)
|
|
5
|
+
|
|
3
6
|
def current_property_filter
|
|
4
7
|
return nil unless params[:q]
|
|
5
8
|
|
|
@@ -113,7 +116,12 @@ module Lookout
|
|
|
113
116
|
|
|
114
117
|
def render_pagination
|
|
115
118
|
if @pagination
|
|
116
|
-
|
|
119
|
+
# Support both Pagy v9 (pagy_nav helper) and v43+ (series_nav method)
|
|
120
|
+
if @pagination.respond_to?(:series_nav)
|
|
121
|
+
@pagination.series_nav.html_safe
|
|
122
|
+
else
|
|
123
|
+
pagy_nav(@pagination).html_safe
|
|
124
|
+
end
|
|
117
125
|
else
|
|
118
126
|
""
|
|
119
127
|
end
|
data/lib/lookout/version.rb
CHANGED