trusty-cms 7.0.16 → 7.0.18

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: a15c9c448d86d17d88425749417d4b9aa12f9c405814ffc4f9525f9de9256fb6
4
- data.tar.gz: dc246259a17322e8cabcbaaf807a2c26062de7d675e4d703a5642b25cf3dace4
3
+ metadata.gz: 8cc60aa6e631fbcf02dc6922e5c602f7a81ca23cb5d182ab4b1c36ac7ecc5904
4
+ data.tar.gz: 7602032c94a89eca24f931fce09591c4543fadbf4abd6848c9b1bf42794f2317
5
5
  SHA512:
6
- metadata.gz: 658090c49962053bf25862a04003d234b08baa448e7382d5d47da6854b679c50aff2cb2195004148d86bd7d30c904dfbb31560228189db42d6b3a366a5bb9a0a
7
- data.tar.gz: 16f83675fb4c96f4b3cd74bd4a6671dde64190ac4547f46883cd4c0b149dde6e19f9bffb53fd274e23e8e4c8f2248c737ecc213992ba856302c8eb5f87255e92
6
+ metadata.gz: dcda6ac43f10b8e8d6d2fc39fc2c4be68f2db21906b92dc28661aab95efb609c8551e666d28d7812ee1628dc488ebcf87928e6b08bc3b659a5367f7981731177
7
+ data.tar.gz: aafdf97ad1bb12da665f1fd936de6d3bdb6a79a830c74ab1fe24ff256cbfd6f67e99e1569e255442c79ab04cb8632254a390c729177e50187948f7d1ebc7a5da
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (7.0.16)
4
+ trusty-cms (7.0.18)
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
@@ -5,5 +5,6 @@
5
5
  = "Current Site: #{current_site.name}"
6
6
  %ul.expansion
7
7
  - current_user.sites.each do |site|
8
- %li
9
- = link_to( site.name, "#{request.path}?site_id=#{site.id}", :class => site == current_site ? 'fg site-link' : 'site-link')
8
+ - unless site.name == 'default_site'
9
+ %li
10
+ = link_to( site.name, "#{request.path}?site_id=#{site.id}", :class => site == current_site ? 'fg site-link' : 'site-link')
@@ -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 = false
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.16'.freeze
2
+ VERSION = '7.0.18'.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.16
4
+ version: 7.0.18
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