mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
🚨Fix Rubocop lint errors
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module CustomExceptions::Account
|
||||
|
||||
class InvalidEmail < CustomExceptions::Base
|
||||
|
||||
def message
|
||||
if @data[:disposable]
|
||||
I18n.t 'errors.signup.disposable_email'
|
||||
@@ -15,13 +13,13 @@ module CustomExceptions::Account
|
||||
|
||||
class UserExists < CustomExceptions::Base
|
||||
def message
|
||||
I18n.t('errors.signup.email_already_exists', email: @data[:email])
|
||||
I18n.t('errors.signup.email_already_exists', email: @data[:email])
|
||||
end
|
||||
end
|
||||
|
||||
class UserErrors < CustomExceptions::Base
|
||||
def message
|
||||
@data[:errors].full_messages.join(",")
|
||||
@data[:errors].full_messages.join(',')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,6 +28,4 @@ module CustomExceptions::Account
|
||||
I18n.t 'errors.signup.failed'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user