trusty-cms 4.2 → 4.2.1

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: 299f6d4ea4f8354fc95eca5057d85ef469ecf514a9b9caccea05498f3ee7b3db
4
- data.tar.gz: 9c635ae0f8cb03af87e45321f6f139cdab67abea7ad57d5bb304c3bbb5426204
3
+ metadata.gz: 97e7e4f174a6b755702f6743fc5c4bed0a9f2384e266e3874b52eeab89df84b8
4
+ data.tar.gz: 59dfd764929a52eddf268255dba421eaaa4b90227e2cb04b07c66abc547b7bc1
5
5
  SHA512:
6
- metadata.gz: 41043b6945a24d689aefc362b5eed571b0cb378aaffb9b3dcf67f4570fba089b86062341998e7d54ecc53391d74cab0f7e76af6de131a9743976227f47b5c5a8
7
- data.tar.gz: cc491f12651bc85e7fddc1612319882c5b9982fe4dc4bce72d5b4325cbfbf597786a2e06ab8cabbbb1bf2453a515590ec62ddd719e76a4efae1984d6bb77ffa1
6
+ metadata.gz: '083f2fd54a713baf10dc16d0ea3773a9ffe002b3ffdca09771e28c1b81a55511d106bb55bd231165548cacc2dfec9c0bc6157f2db9ecb177af36c0729c0269a2'
7
+ data.tar.gz: d0707e8e683982348b672b9dd3eaa16802c82c27565ac0c8b709d6828a2b01942c7fe46b4954f1954290e9f282c6b3ae198ab9030686ac44a63e5c3a6e50820b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (4.2)
4
+ trusty-cms (4.2.1)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (>= 0.9.5, < 1.1.0)
7
7
  acts_as_tree (>= 2.6.1, < 2.9.0)
@@ -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.update_attributes(params[: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.update_attributes(preferences_params)
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.update_attributes!(permitted_params[model_symbol]) # model.update_attributes!(params[model_symbol])
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.update_attributes(user_params)
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.'
@@ -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 = '4.2'.freeze
5
+ VERSION = '4.2.1'.freeze
6
6
  end
7
7
  end
@@ -36,7 +36,7 @@ module TrustyCms
36
36
  }
37
37
  admin = User.find_by(email: username)
38
38
  admin ||= User.new
39
- admin.update_attributes(attributes)
39
+ admin.update(attributes)
40
40
  admin.admin = true
41
41
  admin.save!
42
42
  admin
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.2'
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-13 00:00:00.000000000 Z
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