Add interface to create and update user accounts
This commit is contained in:
parent
5c89cf1501
commit
5f3713aecd
11 changed files with 100 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue