thecore_ui_rails_admin 2.3.6 → 2.3.7

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: 9cc15c20ab978e80e9d0c78e36c2d1e64ef48eb2d0aa9b4fbbe948aa25effb90
4
- data.tar.gz: 198eb37822d6eee65c7494715be0000839b9d2e9576f86e82537981425979b0e
3
+ metadata.gz: 4e463c54522828d09b59b3851ea86893698b0d25b14bc0b45aeab27ef5709d79
4
+ data.tar.gz: 91e1a2d6ff4d0054d60ba54e6d27bcfa471c1d219c3cd7c4fc65c491cb3c3375
5
5
  SHA512:
6
- metadata.gz: 8a7afd0470597fd0ef7ea9df01aad0a3a020a3c27a7ba8dbb06aaf98f97bab047ffb30f6cbe17d4179252e344bcfdebc06bb0a8575d9edf74bd2ed3397c0f7b8
7
- data.tar.gz: 3a76924fee0bfc088909731751e757ac1b4cae436bb258ed2e218cdab5e85a6a07f74e046c602a25a0fe173e581de50a0baecc98997ce8974bc81b9c810f4453
6
+ metadata.gz: 980980371869c46e9e2fb547af383f78f3d97bfd6c7aee47c768960478b7e4e8d5e7aef9dd595c0c4de4e2be2cf8353b010afdde573c2d2782753d1a564681e2
7
+ data.tar.gz: 10e802da71db82d2139bcf4796d8413dd50523d24bba7bdbf5d2a717696b4326cc78e1debdfa145534d7a869f874b712df5315c953099dec4338a8511808e004
@@ -33,17 +33,21 @@ module ThecoreConcern
33
33
  action = root_actions.collect(&:action_name).first
34
34
  # REDIRECT TO THAT ACTION
35
35
 
36
+ puts "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path"
36
37
  if stored_location_for(resource) && can?(resource, :all)
38
+ puts "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the IF"
37
39
  return stored_location_for(resource)
38
40
  elsif action
41
+ puts "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the ELSIF with action name: #{action}"
39
42
  return rails_admin.send("#{action}_path").sub("#{ENV['RAILS_RELATIVE_URL_ROOT']}#{ENV['RAILS_RELATIVE_URL_ROOT']}", "#{ENV['RAILS_RELATIVE_URL_ROOT']}")
40
43
  else
44
+ puts "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Checking redirect path: I'm in the ELSE with root_path: #{root_path}"
41
45
  sign_out current_user
42
46
  user_session = nil
43
47
  current_user = nil
44
48
  flash[:alert] = "Your user is not authorized to access any page."
45
49
  flash[:notice] = nil
46
- return root_url
50
+ return root_path
47
51
  end
48
52
  end
49
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.6
4
+ version: 2.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-01 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_ui_commons