Skip to content

Commit

Permalink
call to_hash on inertia_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorganMY committed Oct 25, 2024
1 parent fac9eba commit 3e85d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inertia_rails/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def inertia_location(url)

def capture_inertia_errors(options)
if (inertia_errors = options.dig(:inertia, :errors))
session[:inertia_errors] = inertia_errors
session[:inertia_errors] = inertia_errors.to_hash
end
end
end
Expand Down

0 comments on commit 3e85d71

Please sign in to comment.