app/models/user.rb
# Returns the hash digest of the given string.
Returns the hash digest of the given string.
Returns the hash digest of the given string .
def digest(string)
			cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST :
			BCrypt::Engine.cost
			BCrypt::Password.create(string, cost: cost)
		end
def digest ( string ) cost = ActiveModel :: SecurePassword . min_cost ? BCrypt :: Engine :: MIN_COST : BCrypt :: Engine . cost BCrypt :: Password . create ( string , cost : cost ) end
Returns the hash digest of the given string.
Returns the hash digest of the given string .
string
<not_specific>