Add and apply Style/AccessorGrouping rubocop rule

This rule was added in Rubocop 0.87.0. We were already grouping
accessors in most places.
This commit is contained in:
Javi Martín
2020-10-10 20:35:30 +02:00
parent e5f4869c02
commit 02ecdf6acc
3 changed files with 5 additions and 6 deletions

View File

@@ -1,9 +1,7 @@
class Verification::Management::Email
include ActiveModel::Model
attr_accessor :document_type
attr_accessor :document_number
attr_accessor :email
attr_accessor :document_type, :document_number, :email
validates :document_type, :document_number, :email, presence: true
validates :email, format: { with: Devise.email_regexp }, allow_blank: true