trusty-cms 4.2 → 4.2.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/admin/pages_controller.rb +1 -1
- data/app/controllers/admin/preferences_controller.rb +1 -1
- data/app/controllers/admin/resource_controller.rb +1 -1
- data/app/controllers/admin/users_controller.rb +1 -1
- data/lib/trusty_cms.rb +1 -1
- data/lib/trusty_cms/setup.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97e7e4f174a6b755702f6743fc5c4bed0a9f2384e266e3874b52eeab89df84b8
|
|
4
|
+
data.tar.gz: 59dfd764929a52eddf268255dba421eaaa4b90227e2cb04b07c66abc547b7bc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '083f2fd54a713baf10dc16d0ea3773a9ffe002b3ffdca09771e28c1b81a55511d106bb55bd231165548cacc2dfec9c0bc6157f2db9ecb177af36c0729c0269a2'
|
|
7
|
+
data.tar.gz: d0707e8e683982348b672b9dd3eaa16802c82c27565ac0c8b709d6828a2b01942c7fe46b4954f1954290e9f282c6b3ae198ab9030686ac44a63e5c3a6e50820b
|
data/Gemfile.lock
CHANGED
|
@@ -75,7 +75,7 @@ class Admin::PagesController < Admin::ResourceController
|
|
|
75
75
|
if request.referer =~ %r{/admin/pages/(\d+)/edit}
|
|
76
76
|
page = Page.find($1).becomes(page_class)
|
|
77
77
|
layout_id = page.layout_id
|
|
78
|
-
page.
|
|
78
|
+
page.update(params[:page])
|
|
79
79
|
page.published_at ||= Time.now
|
|
80
80
|
else
|
|
81
81
|
page = page_class.new(params[:page])
|
|
@@ -11,7 +11,7 @@ class Admin::PreferencesController < ApplicationController
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def update
|
|
14
|
-
if @user.
|
|
14
|
+
if @user.update(preferences_params)
|
|
15
15
|
redirect_to admin_configuration_path
|
|
16
16
|
else
|
|
17
17
|
flash[:error] = t('preferences_controller.error_updating')
|
|
@@ -59,7 +59,7 @@ class Admin::ResourceController < ApplicationController
|
|
|
59
59
|
%i[create update].each do |action|
|
|
60
60
|
class_eval %{
|
|
61
61
|
def #{action} # def create
|
|
62
|
-
model.
|
|
62
|
+
model.update!(permitted_params[model_symbol]) # model.update!(params[model_symbol])
|
|
63
63
|
response_for :#{action} # response_for :create
|
|
64
64
|
end # end
|
|
65
65
|
}, __FILE__, __LINE__
|
|
@@ -29,7 +29,7 @@ class Admin::UsersController < Admin::ResourceController
|
|
|
29
29
|
announce_cannot_remove_self_from_admin_role
|
|
30
30
|
end
|
|
31
31
|
model.skip_password_validation = true unless user_params[:password_confirmation].present?
|
|
32
|
-
if model.
|
|
32
|
+
if model.update(user_params)
|
|
33
33
|
response_for :update
|
|
34
34
|
else
|
|
35
35
|
flash[:error] = 'There was an error saving the user. Please try again.'
|
data/lib/trusty_cms.rb
CHANGED
data/lib/trusty_cms/setup.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trusty-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TrustyCms CMS dev team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: acts_as_list
|