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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user