thecore_ui_rails_admin 2.3.5 → 2.3.6

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: 6afdee67342dd81ce895511f249dcd7e00e5b25dff08304260ede1547ff7651e
4
- data.tar.gz: 7ee3dbf243ad43052672f0ac3d2ded93b3381343437099741e35202b095b230b
3
+ metadata.gz: 9cc15c20ab978e80e9d0c78e36c2d1e64ef48eb2d0aa9b4fbbe948aa25effb90
4
+ data.tar.gz: 198eb37822d6eee65c7494715be0000839b9d2e9576f86e82537981425979b0e
5
5
  SHA512:
6
- metadata.gz: af2f3bfbece22b9da3eb7d36469b284aee31778c9e327251573ab0661039791873fe60c9565d0145899bd5cef9e2c12095a9d55eba8617592382d38ddb9f7d58
7
- data.tar.gz: 071b660f0bc6464690b7fdac0e46b808e002a55694dd164981407c5c01e0d3bf389df708be115656b7d27c354608bc431f3ae634dfba5a1cb0c02f12e4030b1c
6
+ metadata.gz: 8a7afd0470597fd0ef7ea9df01aad0a3a020a3c27a7ba8dbb06aaf98f97bab047ffb30f6cbe17d4179252e344bcfdebc06bb0a8575d9edf74bd2ed3397c0f7b8
7
+ data.tar.gz: 3a76924fee0bfc088909731751e757ac1b4cae436bb258ed2e218cdab5e85a6a07f74e046c602a25a0fe173e581de50a0baecc98997ce8974bc81b9c810f4453
@@ -34,16 +34,16 @@ module ThecoreConcern
34
34
  # REDIRECT TO THAT ACTION
35
35
 
36
36
  if stored_location_for(resource) && can?(resource, :all)
37
- stored_location_for(resource)
37
+ return stored_location_for(resource)
38
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']}")
39
+ return rails_admin.send("#{action}_path").sub("#{ENV['RAILS_RELATIVE_URL_ROOT']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", "#{ENV['RAILS_RELATIVE_URL_ROOT']}")
40
40
  else
41
41
  sign_out current_user
42
42
  user_session = nil
43
43
  current_user = nil
44
44
  flash[:alert] = "Your user is not authorized to access any page."
45
45
  flash[:notice] = nil
46
- root_url
46
+ return root_url
47
47
  end
48
48
  end
49
49
  end
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.5
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni