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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 152ca8f72baa4fc808f0399c60fac21eec2e2a5433f69f7a7cef1b7e1396a1e4
4
- data.tar.gz: 3677240db331ebea3b8c602886f8b745c2a4a329af5e3a3d84bea6667b7e9a98
3
+ metadata.gz: 6c145b2d2dbce455fd6a9f01184ee346b07260a6cf846bd3c8f1f74843dc859d
4
+ data.tar.gz: 3817b969c1e5c4043401c577c7e5d7fc9c9328604660f21b3c8668e4b422d0d0
5
5
  SHA512:
6
- metadata.gz: ab800a6dd8b5ddbe09e554c924715e9ec51de9e846a998a10d4b6ba0d2cec7fb6af610796a677a55670526ed81d728f09b67cb2393ff67a1b94afee530d35c09
7
- data.tar.gz: b770f248adcf8731de5e01b56d61b034bc022925d6cb48b7b2476ea2e04536b63d5f57c0dca35a3fe41676c4e3d5cfb0315a1ba984a85d4ae5c63645fa801d2b
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 ||= (main_app.root_path rescue nil) if main_app.respond_to?(:root_path)
302
-
303
- path || '/'
301
+ path.presence || fallback
304
302
  end
305
303
 
306
304
  # effective_translate
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.27.3'.freeze
2
+ VERSION = '2.27.4'.freeze
3
3
  end
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.3
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-01-29 00:00:00.000000000 Z
11
+ date: 2025-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails