Test for ichain authentication
This commit is contained in:
parent
de92298085
commit
085629958e
2 changed files with 7 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class User < ActiveRecord::Base
|
|||
user.update_attributes(email: attributes[:email])
|
||||
else
|
||||
begin
|
||||
user = create(username: username, email: attributes[:email])
|
||||
user = create!(username: username, email: attributes[:email])
|
||||
rescue ActiveRecord::RecordNotUnique
|
||||
raise IChainRecordNotFound
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue