From c06e58a0fb94971e92b8c72c2134764fcc2d79d1 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sat, 12 Feb 2022 14:04:41 -0600 Subject: [PATCH] Use new lockbox method The old one conflicts with Rails' own new ActiveRecord encryption feature. --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 0a0261d..660d53c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -10,8 +10,8 @@ class User < ApplicationRecord validates_uniqueness_of :email validates :email, email: true - encrypts :ln_login - encrypts :ln_password + lockbox_encrypts :ln_login + lockbox_encrypts :ln_password # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable