alchemy_cms 5.0.5 → 5.0.6

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: 4b6aa9700f3af909d2703be38a81990ff8494d93736c88fea58a92646c33918e
4
- data.tar.gz: c61e345cc05a57b1675216d7842a642bc7c5d055fd8208755a0b24d54fc698b9
3
+ metadata.gz: 258d3d6195bb0d7fa50441605c4d171ed5407c34b4f47a156bb226672ae011b3
4
+ data.tar.gz: 37ea45809644be87e2218468dc78d9c2369cefde1d81c0da8bb3daffc1d1c2e9
5
5
  SHA512:
6
- metadata.gz: 6d562e4f04a457b77d3c20288070a6f9fdf45b38c96501339f1dda723d894875843300e2df281ef5614aa31d3170dfe03e14f70882f9b33ada672ae1dba26548
7
- data.tar.gz: d80df80b211c42cdec1909fb072e41410ed6af4e03f11faa2e690c5ae635e985a240b86dfd95ac8544552c89086f750e8caa0b77746acd4e124b2f40888e146c
6
+ metadata.gz: f91a2f44b2d644103ed3ae44b9d93de2cff43184abec91d181fe43f146f9117a8247790664defb0db2da92bd596f4428b24d75bcb894a69a86799ebf3e6d2cb5
7
+ data.tar.gz: 7ef2077731da024cdd464b5f623e147226019d0d9e3485fa642f9b75063516466099f41277479df5234aac3381182bc1eaf99dabded63b55266972f9978a1056
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 5.0.6 (2021-09-17)
2
+
3
+ - Use self_and_ancestors in page_active? helper [#2193](https://github.com/AlchemyCMS/alchemy_cms/pull/2193) ([mamhoff](https://github.com/mamhoff))
4
+
1
5
  ## 5.0.5 (2021-09-15)
2
6
 
3
7
  - Backport #2115 to v5.0 [#2126](https://github.com/AlchemyCMS/alchemy_cms/pull/2126) ([dbwinger](https://github.com/dbwinger))
@@ -100,7 +100,7 @@ module Alchemy
100
100
 
101
101
  # Returns true if page is in the active branch
102
102
  def page_active?(page)
103
- @_page_ancestors ||= Page.ancestors_for(@page)
103
+ @_page_ancestors ||= @page.self_and_ancestors.contentpages
104
104
  @_page_ancestors.include?(page)
105
105
  end
106
106
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "5.0.5"
4
+ VERSION = "5.0.6"
5
5
 
6
6
  def self.version
7
7
  VERSION
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alchemy_cms/admin",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "AlchemyCMS",
5
5
  "browser": "package/admin.js",
6
6
  "files": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.5
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-09-15 00:00:00.000000000 Z
16
+ date: 2021-09-17 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active_model_serializers