roroacms 0.0.7.10 → 0.0.8
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6eab39cdf1f12a5b70a78f24a5fe608d4007ef7c
|
|
4
|
+
data.tar.gz: a4a527b0434d052dbe38730fbe57f25ee6575f61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fe71947bdb7bfa7a172f0a9f5e6b07cdea41b9df8220c9ab879cb465ae898c051dd1365a3ac368313be6241026456e25c82f53106fe9fe1cd47457eed8c0028
|
|
7
|
+
data.tar.gz: 57ec0978ee05d61b83fc503d8971ff0473c9bc7298dc3957eb307e1e07cb05a363b5725a9fbcafe454dd96343efbbc47104d6effb898f1e34a8fa4133636e588
|
|
@@ -105,7 +105,7 @@ module Roroacms
|
|
|
105
105
|
# devise settings
|
|
106
106
|
|
|
107
107
|
def after_sign_in_path_for(resource)
|
|
108
|
-
|
|
108
|
+
session[:setup_complete] = nil
|
|
109
109
|
set_sessions(session, current_user)
|
|
110
110
|
admin_path
|
|
111
111
|
|
|
@@ -114,7 +114,8 @@ module Roroacms
|
|
|
114
114
|
# check that the setup is complete if not redirect to the setup area
|
|
115
115
|
|
|
116
116
|
def check_setup
|
|
117
|
-
|
|
117
|
+
abort session[:setup_complete].inspect
|
|
118
|
+
redirect_to setup_index_path and return if session[:setup_complete].blank?
|
|
118
119
|
end
|
|
119
120
|
|
|
120
121
|
# add the home breadcrumb for the front end
|
|
@@ -56,6 +56,7 @@ module Roroacms
|
|
|
56
56
|
if @admin.save
|
|
57
57
|
Setting.save_data({setup_complete: 'Y'})
|
|
58
58
|
clear_cache
|
|
59
|
+
session[:setup_complete] = true
|
|
59
60
|
format.html { redirect_to admin_path, notice: I18n.t("controllers.admin.setup.general.success") }
|
|
60
61
|
else
|
|
61
62
|
format.html { render action: "administrator" }
|
data/lib/roroacms/version.rb
CHANGED