Skip to content

Commit

Permalink
Fix typo in datetime_local_field alias (#163)
Browse files Browse the repository at this point in the history
Found an extra `e` here which means calling `f.datetime_local_field` doesn't use the view_component-form version.
  • Loading branch information
wooly authored Jul 10, 2024
1 parent 16818e1 commit 0b56d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_component/form/helpers/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def datetime_field(method, options = {})
:datetime_local_field, @object_name, method, objectify_options(options)
)
end
alias datetime_locale_field datetime_field
alias datetime_local_field datetime_field

def check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
render_component(
Expand Down

0 comments on commit 0b56d68

Please sign in to comment.