chusaku 1.5.0 → 1.5.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 +4 -4
- data/lib/chusaku/routes.rb +2 -2
- data/lib/chusaku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ea21f48d0e23b8f39bcf7904961102f8e18af39f88750b2cc6fb18e10911207
|
|
4
|
+
data.tar.gz: 4e587c49d1291555e8c083d68dc454ea918bf58dad233ab959f34ddef068cb5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb3b5d1f65bb39f7b8488828cc3ea3eb16a3e988dd4edd3fa9a4ce8f19bb625469f506f760384857e662643e37ac3eac005e7d9f11776dc487fc4b031c29518a
|
|
7
|
+
data.tar.gz: e4cbb774bb3145c82e4caa5d87c16993f6371a72d5e5a3b1ea867e18c33902270df2c15d4616acbbccf27861374d0fb45eac330e38ad8c1d4a21093218eb865b
|
data/lib/chusaku/routes.rb
CHANGED
|
@@ -60,14 +60,14 @@ module Chusaku
|
|
|
60
60
|
private
|
|
61
61
|
|
|
62
62
|
# Recursively populate the routes hash with information from the given Rails
|
|
63
|
-
# application. Accounts for Rails
|
|
63
|
+
# application. Accounts for engines in Rails versions >= 5.2.
|
|
64
64
|
#
|
|
65
65
|
# @param app [Rails::Application] Result of `Rails.application`
|
|
66
66
|
# @param routes [Hash] Collection of all route info
|
|
67
67
|
# @return [void]
|
|
68
68
|
def populate_routes(app, routes)
|
|
69
69
|
app.routes.routes.each do |route|
|
|
70
|
-
if route.app.engine?
|
|
70
|
+
if route.app.respond_to?(:engine?) && route.app.engine?
|
|
71
71
|
populate_routes(route.app.app, routes)
|
|
72
72
|
next
|
|
73
73
|
end
|
data/lib/chusaku/version.rb
CHANGED