thecore_ui_rails_admin 2.3.4 → 2.3.5

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: 9edc7811d34bf51324c38827aac6564655f8d909e1cbc631f7c80cbe605037e2
4
- data.tar.gz: c81c83877a3952e110954028ac995fa65ac8cb8a520491b42ec17ffd2122cd68
3
+ metadata.gz: 6afdee67342dd81ce895511f249dcd7e00e5b25dff08304260ede1547ff7651e
4
+ data.tar.gz: 7ee3dbf243ad43052672f0ac3d2ded93b3381343437099741e35202b095b230b
5
5
  SHA512:
6
- metadata.gz: c29483d81c0db2340c94dead4297089c98108ecdf8ec4112cd4f2b0a044d9b6518e3dabbc3e847570b502fbc1ac7ad6b7fd508c89a98d29bf31c9300095d8b53
7
- data.tar.gz: 1df9e7e5d4d32a07d73abe74c39233a713b639cf443e8d06a602603bb434bd451495d552541786d00578cd9580a3c4d71cad9a1365feab3add17f4ee3e787155
6
+ metadata.gz: af2f3bfbece22b9da3eb7d36469b284aee31778c9e327251573ab0661039791873fe60c9565d0145899bd5cef9e2c12095a9d55eba8617592382d38ddb9f7d58
7
+ data.tar.gz: 071b660f0bc6464690b7fdac0e46b808e002a55694dd164981407c5c01e0d3bf389df708be115656b7d27c354608bc431f3ae634dfba5a1cb0c02f12e4030b1c
@@ -32,8 +32,11 @@ module ThecoreConcern
32
32
  # GETTING THE FIRST ACTION I CAN MANAGE
33
33
  action = root_actions.collect(&:action_name).first
34
34
  # REDIRECT TO THAT ACTION
35
- if action
36
- stored_location_for(resource) || rails_admin.send("#{action}_path").sub("#{ENV['RAILS_RELATIVE_URL_ROOT']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", "#{ENV['RAILS_RELATIVE_URL_ROOT']}")
35
+
36
+ if stored_location_for(resource) && can?(resource, :all)
37
+ stored_location_for(resource)
38
+ elsif action
39
+ rails_admin.send("#{action}_path").sub("#{ENV['RAILS_RELATIVE_URL_ROOT']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", "#{ENV['RAILS_RELATIVE_URL_ROOT']}")
37
40
  else
38
41
  sign_out current_user
39
42
  user_session = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni