alchemy_cms 6.0.10 → 6.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/controllers/alchemy/admin/elements_controller.rb +3 -5
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy_cms.rb +0 -3
- data/package.json +1 -1
- metadata +2 -3
- data/lib/kaminari/scoped_pagination_url_helper.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc9b537e2e01fab999228f1a8813bbd0c905d521639eeeb1413021c70e5add7e
|
4
|
+
data.tar.gz: 6d93f0bb79d91d05a6cda0d9a1f6697fada5cd2de30bc11b7e5c879f98ebd1a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9640f98ba68fb3b85dcdf7edb966911eb148448838259981576f0f5da1e8a6511b2adf6c72753c5396b13ae7d3d42776ac160db9e5793b6b34f4cb5296e28910
|
7
|
+
data.tar.gz: 59ab7f7c6097b79df1971212cae17cc587aadb93338b8e7a8131dfdea73756bb3e0ec0b5fd68726769b829e326b346bd0ce9832764bd613af131a4b21dfb8a76
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 6.0.11 (2022-09-22)
|
2
|
+
|
3
|
+
- Do not touch pages when toggling element [#2377](https://github.com/AlchemyCMS/alchemy_cms/pull/2377) ([tvdeyen](https://github.com/tvdeyen))
|
4
|
+
- Remove unused Kaminari::Helpers::Tag hack [#2376](https://github.com/AlchemyCMS/alchemy_cms/pull/2376) ([tvdeyen](https://github.com/tvdeyen))
|
5
|
+
|
1
6
|
## 6.0.10 (2022-09-04)
|
2
7
|
|
3
8
|
- Deprecate essence classes [#2371](https://github.com/AlchemyCMS/alchemy_cms/pull/2371) ([tvdeyen](https://github.com/tvdeyen))
|
@@ -90,14 +90,12 @@ module Alchemy
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
# Toggle
|
93
|
+
# Toggle folds the element and persists the state in the db
|
94
94
|
#
|
95
|
-
# Ingredient validations might make the element invalid.
|
96
|
-
# In this case we are just toggling a UI state and do not care about the validations.
|
97
95
|
def fold
|
98
96
|
@page = @element.page
|
99
|
-
|
100
|
-
@element.
|
97
|
+
# We do not want to trigger the touch callback or any validations
|
98
|
+
@element.update_columns(folded: !@element.folded)
|
101
99
|
end
|
102
100
|
|
103
101
|
private
|
data/lib/alchemy/version.rb
CHANGED
data/lib/alchemy_cms.rb
CHANGED
@@ -57,8 +57,5 @@ require_relative "alchemy/tinymce"
|
|
57
57
|
require_relative "alchemy/taggable"
|
58
58
|
require_relative "alchemy/version"
|
59
59
|
|
60
|
-
# Require hacks
|
61
|
-
require_relative "kaminari/scoped_pagination_url_helper"
|
62
|
-
|
63
60
|
# Finally require Alchemy itself
|
64
61
|
require_relative "alchemy/engine"
|
data/package.json
CHANGED
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: 6.0.
|
4
|
+
version: 6.0.11
|
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: 2022-09-
|
16
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: actionmailer
|
@@ -1419,7 +1419,6 @@ files:
|
|
1419
1419
|
- lib/generators/alchemy/site_layouts/templates/layout.html.haml
|
1420
1420
|
- lib/generators/alchemy/site_layouts/templates/layout.html.slim
|
1421
1421
|
- lib/generators/alchemy/views/views_generator.rb
|
1422
|
-
- lib/kaminari/scoped_pagination_url_helper.rb
|
1423
1422
|
- lib/tasks/alchemy/db.rake
|
1424
1423
|
- lib/tasks/alchemy/install.rake
|
1425
1424
|
- lib/tasks/alchemy/thumbnails.rake
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# A Kaminari patch for scoping the urls.
|
3
|
-
Kaminari::Helpers::Tag.class_eval do
|
4
|
-
def page_url_for(page)
|
5
|
-
params = @params.merge(@param_name => (page <= 1 ? nil : page))
|
6
|
-
if @options[:scope]
|
7
|
-
@options[:scope].url_for params
|
8
|
-
else
|
9
|
-
@template.url_for params
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|