trusty-cms 3.9.6 → 3.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/admin/resource_controller.rb +4 -2
- data/lib/trusty_cms.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: fe39b70f57fe06a065e85f038d3dbae006664d4104df85b83fa356230ac81b33
|
4
|
+
data.tar.gz: dbab3e5fbec1d3357d5cf38d87d32378f0e25dbeee2bd7a123c0b87f4cacae77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6abadcc9f1b9a7b49721196364177a7f0cf5661b51d3e4cdd86128460be822a86383bf00618b4358a4fb05ddccaf3a853d38efbc4f341fdc885ba45e44b5bdf
|
7
|
+
data.tar.gz: e2d1c9e7ce9535c7d31b1a4da04862765a6ded1c21ed2bf8a851b8d3b04bf9c76d6344ae56bb46631bcc7d276cc171e022fe64727a3990eedae9728ef658a8c9
|
data/Gemfile.lock
CHANGED
@@ -136,8 +136,10 @@ class Admin::ResourceController < ApplicationController
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def set_owner_or_editor
|
139
|
-
|
140
|
-
|
139
|
+
if self.model.has_attribute? :created_by_id
|
140
|
+
self.model.created_by_id = current_user.id if self.model.id == nil
|
141
|
+
self.model.updated_by_id = current_user.id
|
142
|
+
end
|
141
143
|
end
|
142
144
|
|
143
145
|
def model
|
data/lib/trusty_cms.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: 3.9.
|
4
|
+
version: 3.9.7
|
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: 2020-03-
|
11
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|