Skip to content

Commit

Permalink
Couple more deprecation things
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 4, 2025
1 parent 81dc3b0 commit 4948821
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/views/controllers/names/trackers/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<%
# This form can create OR update a tracker, via params[:commit]
# Idk why rails does not recognize the model scope and nest the attributes.
form_args = { url: action, method: method, id: "name_tracker_form" }
form_args[:model] = @name_tracker if @name_tracker
%>
<%= form_with(model: @name_tracker, url: action, method: method,
id: "name_tracker_form") do |f| %>

<%= form_with(**form_args) do |f| %>

<div class="text-center my-3">
<%= if @name_tracker
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/new_framework_defaults_7_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
# Do not treat an `ActionController::Parameters` instance
# as equal to an equivalent `Hash` by default.
#++
Rails.application.config.action_controller.
allow_deprecated_parameters_hash_equality = false
# Rails.application.config.action_controller.
# allow_deprecated_parameters_hash_equality = false

###
# Active Record Encryption now uses SHA-256 as its hash digest algorithm.
Expand Down

0 comments on commit 4948821

Please sign in to comment.