Add interface to create and update user accounts

This commit is contained in:
1resu 2021-12-19 04:13:05 +01:00
parent 5c89cf1501
commit 5f3713aecd
11 changed files with 100 additions and 1 deletions

View file

@ -2,6 +2,7 @@ class User < ApplicationRecord
has_many :user_accesses, :dependent => :destroy
has_many :suppliers, :through => :user_accesses
attr_accessor :password
before_save :encrypt_password