//DEVGURU

Marcin Stecki @ December 10th, 2009

Proudly presenting has_uniq_token.

In one of our rails projects, we found that a lot of models needed some sort of unique token or guid generated before saving. Most of them were then used in routes or something similiar, but all of them were generated by callbacks in each model. Since that methods were mostly effect of copypasta, i decided to abstract the code, and make a plugin of it.

A bit of meta programming later, i’m proud to present the results: http://github.com/netguru/has_uniq_token/

Hope you find it useful.

Comment this post!