active_scaffold 3.6.11.1 → 3.6.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c15e01c11227052618d2b92ad709cfa1197de5ce2d088fb1f5d808f831714ae3
|
4
|
+
data.tar.gz: 64dcb127193bf37114da0d406d514f3091cca7b6295841134a0d9d939c5344f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86fc673e0a500a8b7734ddb8cde6ebf309f22f6781f60df385e1a715d2218fb120bc2e54ce0fd4befd0ee94093d5e0c6ada201258240f98212eb7f492e68342d
|
7
|
+
data.tar.gz: 9be0d09ab6ad138c3e27ba3d2dba898ad7d72e53005cc1dbab56c4655ce9499dd2aea6afb9450493248ab450be7209fd1d8d9e5bda67f529a70ec42989c90cef
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
= 3.6.13
|
2
|
+
- Fix link caching on action when threadsafe is enabled
|
3
|
+
|
4
|
+
= 3.6.12
|
5
|
+
- Fix getting proxy for action link when iterating over action links and threadsafe is enabled, so link can be changed
|
6
|
+
|
1
7
|
= 3.6.11.1
|
2
8
|
- Fix required attribute broken on previous version when no validation was found
|
3
9
|
|
@@ -71,6 +71,17 @@ module CowProxy
|
|
71
71
|
name !~ /[!?]$/
|
72
72
|
end
|
73
73
|
|
74
|
+
def each(options = {}, &block)
|
75
|
+
super(options) do |item|
|
76
|
+
item = __wrap__(item) || item unless item.is_a?(ActiveScaffold::DataStructures::ActionLinks)
|
77
|
+
if options[:include_set]
|
78
|
+
yield item, __getobj__.instance_variable_get(:@set)
|
79
|
+
else
|
80
|
+
yield item
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
74
85
|
protected
|
75
86
|
|
76
87
|
# Copy wrapped values to duplicated wrapped object
|
@@ -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
|
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.
|
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-
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|