Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing form_method to a public method. #1915

Merged
merged 2 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lucky/action_pipes.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lucky/tags/form_helpers.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading