مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-16 21:23:37 +00:00
style(rubocop): Lint/DuplicateMethods
هذا الالتزام موجود في:
@@ -31,6 +31,7 @@ class IncomingMessagePrototype
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Lint/DuplicateMethods
|
||||||
def attachments
|
def attachments
|
||||||
(@attachments || []).map do |attachment|
|
(@attachments || []).map do |attachment|
|
||||||
{
|
{
|
||||||
@@ -40,6 +41,7 @@ class IncomingMessagePrototype
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Lint/DuplicateMethods
|
||||||
|
|
||||||
def create_messages
|
def create_messages
|
||||||
if valid?
|
if valid?
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ class OutgoingMessagePrototype
|
|||||||
@errors || {}
|
@errors || {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# rubocop:disable Lint/DuplicateMethods
|
||||||
def attachments
|
def attachments
|
||||||
(@attachments || []).map do |attachment|
|
(@attachments || []).map do |attachment|
|
||||||
{
|
{
|
||||||
@@ -102,6 +103,7 @@ class OutgoingMessagePrototype
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Lint/DuplicateMethods
|
||||||
|
|
||||||
def validate
|
def validate
|
||||||
@errors = []
|
@errors = []
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم