active_scaffold 3.6.12 → 3.6.13

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: c7e719c9e6003904fa2f7765e1f5d5c2dc691fe6fe662bd07277e056f304c597
4
- data.tar.gz: b2901dfbd786c90000ba12970baa056324caefc60810c8883166b47abf7079ec
3
+ metadata.gz: c15e01c11227052618d2b92ad709cfa1197de5ce2d088fb1f5d808f831714ae3
4
+ data.tar.gz: 64dcb127193bf37114da0d406d514f3091cca7b6295841134a0d9d939c5344f9
5
5
  SHA512:
6
- metadata.gz: 0e020933f2fa31d3922a0066cac2bf85c00be4f1424a4bbd6b7544e472af3e7c5f2896290d0bc270af943a4137cbfe937ddee349efa97d8df328f0e1954eba45
7
- data.tar.gz: acef80c0ff55cd921a72b52384514e05106eb4c842fcd5fad942e952513586fad8f3e79f805e52cf83e9254676ea221efc0877f88b9ad822af82717759014f8b
6
+ metadata.gz: 86fc673e0a500a8b7734ddb8cde6ebf309f22f6781f60df385e1a715d2218fb120bc2e54ce0fd4befd0ee94093d5e0c6ada201258240f98212eb7f492e68342d
7
+ data.tar.gz: 9be0d09ab6ad138c3e27ba3d2dba898ad7d72e53005cc1dbab56c4655ce9499dd2aea6afb9450493248ab450be7209fd1d8d9e5bda67f529a70ec42989c90cef
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ = 3.6.13
2
+ - Fix link caching on action when threadsafe is enabled
3
+
1
4
  = 3.6.12
2
5
  - Fix getting proxy for action link when iterating over action links and threadsafe is enabled, so link can be changed
3
6
 
@@ -167,10 +167,10 @@ module ActiveScaffold
167
167
 
168
168
  def cached_action_link_url(link, record)
169
169
  @action_links_urls ||= {}
170
- @action_links_urls[link.name_to_cache] || begin
170
+ @action_links_urls[link.name_to_cache.to_s] || begin
171
171
  url_options = cached_action_link_url_options(link, record)
172
172
  if cache_action_link_url?(link, record)
173
- @action_links_urls[link.name_to_cache] = url_for(url_options)
173
+ @action_links_urls[link.name_to_cache.to_s] = url_for(url_options)
174
174
  else
175
175
  url_options.merge! eid: nil, embedded: nil if link.nested_link?
176
176
  url_for(params_for(url_options))
@@ -207,7 +207,7 @@ module ActiveScaffold
207
207
 
208
208
  def action_link_url(link, record)
209
209
  url = replace_id_params_in_action_link_url(link, record, cached_action_link_url(link, record))
210
- url = add_query_string_to_cached_url(link, url) if @action_links_urls[link.name_to_cache]
210
+ url = add_query_string_to_cached_url(link, url) if @action_links_urls[link.name_to_cache.to_s]
211
211
  url
212
212
  end
213
213
 
@@ -267,10 +267,10 @@ module ActiveScaffold
267
267
 
268
268
  def cached_action_link_url_options(link, record)
269
269
  @action_links_url_options ||= {}
270
- @action_links_url_options[link.name_to_cache] || begin
270
+ @action_links_url_options[link.name_to_cache.to_s] || begin
271
271
  options = action_link_url_options(link, record)
272
272
  if cache_action_link_url_options?(link, record)
273
- @action_links_url_options[link.name_to_cache] = options
273
+ @action_links_url_options[link.name_to_cache.to_s] = options
274
274
  end
275
275
  options
276
276
  end
@@ -378,7 +378,7 @@ module ActiveScaffold
378
378
  end
379
379
  end
380
380
  id ||= record&.id&.to_s || (nested? ? nested_parent_id.to_s : '')
381
- action_link_id = ActiveScaffold::Registry.cache :action_link_id, link.name_to_cache do
381
+ action_link_id = ActiveScaffold::Registry.cache :action_link_id, link.name_to_cache.to_s do
382
382
  action_id = "#{id_from_controller("#{link.controller}-") if params[:parent_controller] || (link.controller && link.controller != controller.controller_path)}#{link.action}"
383
383
  action_link_id(action_id, '--ID--')
384
384
  end
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 6
5
- PATCH = 12
5
+ PATCH = 13
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.12
4
+ version: 3.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Many, see README
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-22 00:00:00.000000000 Z
11
+ date: 2022-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails