Security issue

aamer Aug 14, 2011

One thing to note about the code above is that it could have a security issue. If the user changes his/her password, the authentication token should expire. Hence, in a production scenario you should put in the password salt or something to allow the token to become invalidated.

now they are built-in

flamingo Jul 30, 2011

in ruby 1.9 and afterwards, the to_enum and enum_for(synonym for to_enum) methods are buil-in to the language. so there's no need to require that any more.

Dup vs Clone difference

aberezovskiy Jul 15, 2011 1 thank

As for me main difference between .dup and .clone , that first one doesn't not freeze result object if initial object was frozen.