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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74c35dcc536c36e6a89c8911b66b2cefdf4c557265153ced5a1a1353db4aea9a
4
- data.tar.gz: f431899551c85eef3aa5cdadd1ba488293c7fb312fbffd499c9daa857cebdd42
3
+ metadata.gz: fe39b70f57fe06a065e85f038d3dbae006664d4104df85b83fa356230ac81b33
4
+ data.tar.gz: dbab3e5fbec1d3357d5cf38d87d32378f0e25dbeee2bd7a123c0b87f4cacae77
5
5
  SHA512:
6
- metadata.gz: 27d9a994c75dbb7f45bef014275a9a46434f2502224040b02d74f90e54dd389e077c96bf2a73a82ecca6a77ae2319f77b956aeccb1b611a4236f2dd09d25930b
7
- data.tar.gz: 5c5887be8de0f80f64edf6d9c45ad604a2665187ac8b26cad31611d1ee8fab3ca46f8793e162e48b2226b9c805b3b88c4f0dd2c0a23e9b981ebdd276d6ef1bef
6
+ metadata.gz: a6abadcc9f1b9a7b49721196364177a7f0cf5661b51d3e4cdd86128460be822a86383bf00618b4358a4fb05ddccaf3a853d38efbc4f341fdc885ba45e44b5bdf
7
+ data.tar.gz: e2d1c9e7ce9535c7d31b1a4da04862765a6ded1c21ed2bf8a851b8d3b04bf9c76d6344ae56bb46631bcc7d276cc171e022fe64727a3990eedae9728ef658a8c9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (3.9.6)
4
+ trusty-cms (3.9.7)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (~> 0.9.5)
7
7
  acts_as_tree (>= 2.6.1, < 2.9.0)
@@ -136,8 +136,10 @@ class Admin::ResourceController < ApplicationController
136
136
  end
137
137
 
138
138
  def set_owner_or_editor
139
- self.model.created_by_id = current_user.id if self.model.id == nil
140
- self.model.updated_by_id = current_user.id
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
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '3.9.6'
5
+ VERSION = '3.9.7'
6
6
  end
7
7
  end
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.6
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-03 00:00:00.000000000 Z
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