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 = []