Skip to content

Commit dcd3b73

Browse files
Merge pull request #41 from iatanas0v/patch-1
Inject live reload on 422
2 parents 6dcd66f + 910a3fb commit dcd3b73

File tree

1 file changed

+1
-1
lines changed
  • lib/rails_live_reload/middleware

1 file changed

+1
-1
lines changed

lib/rails_live_reload/middleware/base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def call!(env)
1818
request = ActionDispatch::Request.new(env)
1919
status, headers, body = @app.call(env)
2020

21-
if html?(headers) && (status == 500 || (status.to_s =~ /20./ && request.get?))
21+
if html?(headers) && (status == 500 || status == 422 || (status.to_s =~ /20./ && request.get?))
2222
return inject_rails_live_reload(request, status, headers, body)
2323
end
2424

0 commit comments

Comments
 (0)