Skip to content

Commit 491c6ce

Browse files
committed
call to_hash on inertia_errors
1 parent 56044fd commit 491c6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/inertia_rails/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def inertia_location(url)
109109

110110
def capture_inertia_errors(options)
111111
if (inertia_errors = options.dig(:inertia, :errors))
112-
session[:inertia_errors] = inertia_errors
112+
session[:inertia_errors] = inertia_errors.to_hash
113113
end
114114
end
115115
end

0 commit comments

Comments
 (0)