chore(rubocop): giganto rubocop commit.

muahahahah
This commit is contained in:
Joseph Mastey
2017-12-05 18:46:21 -06:00
parent 284cd8811c
commit 9902345291
120 changed files with 743 additions and 635 deletions
+4 -3
View File
@@ -1,11 +1,12 @@
# frozen_string_literal: true
class WorkInfo < ApplicationRecord
belongs_to :user
has_one :key_management, :foreign_key => :user_id, :primary_key => :user_id, :dependent => :destroy
has_one :key_management, foreign_key: :user_id, primary_key: :user_id, dependent: :destroy
#before_save :encrypt_ssn
# We should probably use this
def last_four
"***-**-" << self.decrypt_ssn[-4,4]
"***-**-" << self.decrypt_ssn[-4, 4]
end
def encrypt_ssn
@@ -36,6 +37,6 @@ class WorkInfo < ApplicationRecord
end
def cipher_type
'aes-256-cbc'
"aes-256-cbc"
end
end