From a77946bbac6508be45b3dd65f47e19aa600ccbe8 Mon Sep 17 00:00:00 2001 From: Russ Smith Date: Sun, 6 Oct 2024 08:07:23 -0700 Subject: [PATCH 1/2] Changing form_method to a public method. Ref #1824 --- src/lucky/tags/form_helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lucky/tags/form_helpers.cr b/src/lucky/tags/form_helpers.cr index 47e74b477..5519726cc 100644 --- a/src/lucky/tags/form_helpers.cr +++ b/src/lucky/tags/form_helpers.cr @@ -19,7 +19,7 @@ module Lucky::FormHelpers input merge_options(html_options, {"type" => "submit", "value" => text}) end - private def form_method(route) : String + def form_method(route) : String if route.method == :get "get" else From e7ec2b8dddfd9fcfe4367f314c4a982d4b90a251 Mon Sep 17 00:00:00 2001 From: Russ Smith Date: Sun, 6 Oct 2024 08:09:48 -0700 Subject: [PATCH 2/2] crystal tool format brought in changes --- src/lucky/action_pipes.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lucky/action_pipes.cr b/src/lucky/action_pipes.cr index af007c4e4..4285c862c 100644 --- a/src/lucky/action_pipes.cr +++ b/src/lucky/action_pipes.cr @@ -24,13 +24,13 @@ module Lucky::ActionPipes # :nodoc: macro included - AFTER_PIPES = [] of Symbol - BEFORE_PIPES = [] of Symbol + AFTER_PIPES = [] of Symbol + BEFORE_PIPES = [] of Symbol SKIPPED_PIPES = [] of Symbol macro inherited - AFTER_PIPES = [] of Symbol - BEFORE_PIPES = [] of Symbol + AFTER_PIPES = [] of Symbol + BEFORE_PIPES = [] of Symbol SKIPPED_PIPES = [] of Symbol inherit_pipes