From e3333f1761e961b8e7b4ee9f764b53a6db16427e Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Tue, 26 Jun 2018 14:20:20 -0500 Subject: [PATCH] .success? => successful? (Rails 6 deprecation warning) --- api_docs.md.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api_docs.md.erb b/api_docs.md.erb index 3fe06389f..095dc3207 100644 --- a/api_docs.md.erb +++ b/api_docs.md.erb @@ -1,5 +1,5 @@ -<% if (response.success? || note.present?) %> -# <%= response.success? ? "" : "(NOT OK)" %> <%= request.pretty_url %> +<% if (response.successful? || note.present?) %> +# <%= response.successful? ? "" : "(NOT OK)" %> <%= request.pretty_url %> <% if note.present? %> **Notes:** <%= note %> <% end %>