active_scaffold 3.6.12 → 3.6.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +3 -0
- data/lib/active_scaffold/helpers/action_link_helpers.rb +6 -6
- data/lib/active_scaffold/version.rb +1 -1
- metadata +2 -2
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
@@ -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
|