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 +4 -4
- data/config/initializers/thecore_concern.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cc15c20ab978e80e9d0c78e36c2d1e64ef48eb2d0aa9b4fbbe948aa25effb90
|
4
|
+
data.tar.gz: 198eb37822d6eee65c7494715be0000839b9d2e9576f86e82537981425979b0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|