Refactor user model
This commit is contained in:
@@ -28,6 +28,6 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def bcrypt(string)
|
def bcrypt(string)
|
||||||
return Password.create(string)
|
Password.create(string)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user