From 2f52af6e2de759ed019ed1ab62d1e01814dccd2e Mon Sep 17 00:00:00 2001 From: Muhsin <12408980+muhsin-k@users.noreply.github.com> Date: Mon, 22 Jun 2026 13:40:22 +0400 Subject: [PATCH] Update inbox.rb --- lib/custom_exceptions/inbox.rb | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/lib/custom_exceptions/inbox.rb b/lib/custom_exceptions/inbox.rb index 69b30c466..f33b9b629 100644 --- a/lib/custom_exceptions/inbox.rb +++ b/lib/custom_exceptions/inbox.rb @@ -1,19 +1,17 @@ # frozen_string_literal: true -class CustomExceptions::Inbox::Disabled < CustomExceptions::Base - def initialize(data = {}) - super - end +module CustomExceptions::Inbox + class Disabled < CustomExceptions::Base + def message + 'This inbox is currently disabled' + end - def message - 'This inbox is currently disabled' - end + def error_code + 'inbox_disabled' + end - def error_code - 'inbox_disabled' - end - - def http_status - :forbidden + def http_status + :forbidden + end end end