Customizing devise views and controllers
This commit is contained in:
parent
7e93da3f8d
commit
6045b6cb18
19 changed files with 398 additions and 17 deletions
|
@ -1,6 +1,7 @@
|
|||
class Account < ActiveRecord::Base
|
||||
# Local users
|
||||
has_one :user, inverse_of: :account
|
||||
validates :username, uniqueness: { scope: :domain }
|
||||
|
||||
# Avatar upload
|
||||
attr_reader :avatar_remote_url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue