trusty-cms 7.0.14 → 7.0.17

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
  SHA256:
3
- metadata.gz: 618e9b238cacf51c8c18350b0c9be7cb0d4888bed01644f224d829dbadb2070f
4
- data.tar.gz: 4f31af9203e1131fb13c53758bd6fa8e10b9b747eba61539a5df17b7908ecca7
3
+ metadata.gz: dccb8f8143fd278e3cdaebdb026956caa47eddce01ab5fb347538d453b14ef8a
4
+ data.tar.gz: 8d6a377ca301e09378de096ec6e6bd73348dbbc2c986c33d629d165c5ca4d4c8
5
5
  SHA512:
6
- metadata.gz: 983189f270c8143c29187a46cc16f4d33d66ec2403fbd9c96f4c397e3b34f675460acbc08b2e5262b6434115678004b05e5e00fcca5785433675b175a44665c4
7
- data.tar.gz: 1346ccda7ce5fac525ac34837e5a28d7c3cc6bee479ff20c5d71b20edbd3bc1ff5f7ced3ab9ea3f86fc630bb37a8900a87f48a6b2fde057d8ffa7dfd55dfb14a
6
+ metadata.gz: 2a5cc1d5e0cb194b5ccbfa10850bb87507d32116be68510180d310fd1886ebad1f79ca9a9ce1d63027d0b74b6d639be44ae4efd4a3b04d8f21ee9f502e71b786
7
+ data.tar.gz: fdcf3b0aa878a563c9f9f6ba8b06ecf987fb3061246c8e5222aef582aa06dea0eea1020a6f17dfccb41a25d6b2239c9eb4a622d2513d611ca6abad5630d49d08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (7.0.14)
4
+ trusty-cms (7.0.17)
5
5
  RedCloth (= 4.3.3)
6
6
  activestorage-validator
7
7
  acts_as_list (>= 0.9.5, < 1.3.0)
@@ -19,8 +19,10 @@ module Admin::PagesHelper
19
19
  end
20
20
 
21
21
  def parent_page_options(current_site, page)
22
- parent_pages = Page.parent_pages(current_site.homepage_id)
23
- selected_page_id = page.id.presence_in(parent_pages.pluck(:id)) || page.parent_id.presence_in(parent_pages.pluck(:id))
22
+ parent_pages = []
23
+ parent_pages.concat(Page.parent_pages(current_site.homepage_id))
24
+ parent_pages << page.parent if page.parent
25
+ selected_page_id = page.parent_id
24
26
  options_for_select(parent_pages.map { |p| [p.title, p.id] }, selected_page_id)
25
27
  end
26
28
  end
@@ -251,7 +251,7 @@ Devise.setup do |config|
251
251
 
252
252
  # Set this configuration to false if you want /users/sign_out to sign out
253
253
  # only the current scope. By default, Devise signs out all scopes.
254
- # config.sign_out_all_scopes = true
254
+ config.sign_out_all_scopes = true
255
255
 
256
256
  # ==> Navigation configuration
257
257
  # Lists the formats that should be treated as navigational. Formats like
@@ -1,3 +1,3 @@
1
1
  module TrustyCms
2
- VERSION = '7.0.14'.freeze
2
+ VERSION = '7.0.17'.freeze
3
3
  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: 7.0.14
4
+ version: 7.0.17
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: 2025-02-07 00:00:00.000000000 Z
11
+ date: 2025-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator