search for: hash_new_password

Displaying 1 result from an estimated 1 matches for "hash_new_password".

2010 Jan 18
3
The role of self and :: within a method of a model
...when located in a method inside a model like in the code below. Also in the code below, you see :: located in the method. Isn''t that used for modules and namespaces? If so, why is it located in the method here. These two things are preventing me from comprehending the below code: def hash_new_password # First reset the salt to a new random string. You could choose a # longer string here but for a salt, 8 bytes of randomness is probably # fine. Note this uses SecureRandom which will use your platform''s secure # random number generator. self.salt = ActiveSu...