From b95cb05f69e9bfe5bc961241235f3f646ae078a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20=C4=90uza?= Date: Sun, 13 Dec 2020 09:04:56 +0100 Subject: [PATCH 1/2] Ignore .DS_Store files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d87d4be..a955cfa 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ spec/reports test/tmp test/version_tmp tmp +.DS_Store From c777ac8d4dea475a6b51533d8e7fc2099e87e958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20=C4=90uza?= Date: Sun, 13 Dec 2020 09:05:59 +0100 Subject: [PATCH 2/2] Rename config to configuration It seems that config didn't actually get the values from RenderAsync.configuration --- lib/render_async/view_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/render_async/view_helper.rb b/lib/render_async/view_helper.rb index b5c0cef..1f38199 100644 --- a/lib/render_async/view_helper.rb +++ b/lib/render_async/view_helper.rb @@ -44,7 +44,7 @@ def container_element_options(options) def html_options(options) set_options = options.delete(:html_options) || {} - set_options[:nonce] = config.nonces if set_options[:nonce].nil? + set_options[:nonce] = configuration.nonces if set_options[:nonce].nil? set_options end @@ -85,10 +85,10 @@ def generate_container_id def replace_container(options) return options[:replace_container] unless options[:replace_container].nil? - config.replace_container + configuration.replace_container end - def config + def configuration RenderAsync.configuration end end