From bab6346239e4f50bdd51101c45f3a0cd66f47096 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 10 Feb 2024 23:30:24 +0000 Subject: [PATCH] style(rubocop): Lint/DuplicateMethods --- app/models/incoming_message_prototype.rb | 2 ++ app/models/outgoing_message_prototype.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/models/incoming_message_prototype.rb b/app/models/incoming_message_prototype.rb index 6c9ad0d..334df62 100644 --- a/app/models/incoming_message_prototype.rb +++ b/app/models/incoming_message_prototype.rb @@ -31,6 +31,7 @@ class IncomingMessagePrototype end end + # rubocop:disable Lint/DuplicateMethods def attachments (@attachments || []).map do |attachment| { @@ -40,6 +41,7 @@ class IncomingMessagePrototype } end end + # rubocop:enable Lint/DuplicateMethods def create_messages if valid? diff --git a/app/models/outgoing_message_prototype.rb b/app/models/outgoing_message_prototype.rb index a2abd99..7362f30 100644 --- a/app/models/outgoing_message_prototype.rb +++ b/app/models/outgoing_message_prototype.rb @@ -93,6 +93,7 @@ class OutgoingMessagePrototype @errors || {} end + # rubocop:disable Lint/DuplicateMethods def attachments (@attachments || []).map do |attachment| { @@ -102,6 +103,7 @@ class OutgoingMessagePrototype } end end + # rubocop:enable Lint/DuplicateMethods def validate @errors = []