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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03cfa47992384280268b398c712c0d2fe88402482c1acd514406ba784e5e74d0
4
- data.tar.gz: 9793cf56d7592cdd552009efac7f065d0ee1c6511b4d4d2e6307997c850c88d8
3
+ metadata.gz: dc9b537e2e01fab999228f1a8813bbd0c905d521639eeeb1413021c70e5add7e
4
+ data.tar.gz: 6d93f0bb79d91d05a6cda0d9a1f6697fada5cd2de30bc11b7e5c879f98ebd1a4
5
5
  SHA512:
6
- metadata.gz: d3600a98fec4301d4d5ed8dd156ecde606a1857cdd028e5c97318ca3284d19e54e13614e1192ef69bff3805037c325d8a57821efbebf449101cda575559c6874
7
- data.tar.gz: e0d22ac66fb2b8d75a5bc3719372f12be3332dedad315f5f8758850407b7690a98d5eb24ac0b905199de40a7ba9f13930ef6c79c36304b02ee894f7410ad1273
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 fodls the element and persists the state in the db
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
- @element.folded = !@element.folded
100
- @element.save(validate: false)
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "6.0.10"
4
+ VERSION = "6.0.11"
5
5
 
6
6
  def self.version
7
7
  VERSION
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alchemy_cms/admin",
3
- "version": "6.0.10",
3
+ "version": "6.0.11",
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: 6.0.10
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-04 00:00:00.000000000 Z
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