effective_resources 2.27.3 → 2.27.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_resources_helper.rb +2 -4
- data/lib/effective_resources/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: 6c145b2d2dbce455fd6a9f01184ee346b07260a6cf846bd3c8f1f74843dc859d
|
4
|
+
data.tar.gz: 3817b969c1e5c4043401c577c7e5d7fc9c9328604660f21b3c8668e4b422d0d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b37cb49e755c9c62210f5a1fa09a9f4ef3a033ca9c9fdb5d8322c9f89bdb67e2dc7e0c0f142a1979ab0dec797eedfb26baec3a1728f7e95f743efc8078fa80a3
|
7
|
+
data.tar.gz: e070c451f2b990a68c58b336f67a3788272701efb70a1f138adbf066986390b25e6eb3a902fb8dbf64a1de9ee232319c2ded7ac601637a2b3308ece0aa7c7d47
|
@@ -295,12 +295,10 @@ module EffectiveResourcesHelper
|
|
295
295
|
end
|
296
296
|
end
|
297
297
|
|
298
|
-
def return_to_dashboard_path
|
298
|
+
def return_to_dashboard_path(fallback: "/")
|
299
299
|
path = (Tenant.routes.dashboard_path rescue nil) if defined?(Tenant) && Tenant.routes.respond_to?(:dashboard_path)
|
300
300
|
path ||= (main_app.dashboard_path rescue nil) if main_app.respond_to?(:dashboard_path)
|
301
|
-
path
|
302
|
-
|
303
|
-
path || '/'
|
301
|
+
path.presence || fallback
|
304
302
|
end
|
305
303
|
|
306
304
|
# effective_translate
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.27.
|
4
|
+
version: 2.27.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|